Skip to content

Commit

Permalink
chore: fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Dec 12, 2024
1 parent 162f99e commit c3496e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/preview-kit/src/live-query/LiveQuery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ export function LiveQuery<QueryResult, QueryParams extends ClientQueryParams = C
params={params as any}
throwOnMissingProvider={props.throwOnMissingProvider}
>
<LiveComponent {...props.children.props} />
<LiveComponent
{
// eslint-disable-next-line no-warning-comments
// @ts-expect-error -- @todo fix the typings
...props.children.props
}
/>
</ClientComponent>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export default function LiveQueryClientComponent<
*/
if (isValidElement(children)) {
return cloneElement(children, {
// eslint-disable-next-line no-warning-comments
// @ts-expect-error -- @todo fix the typings
...children.props,
// all child props should override, except for `data`
data,
Expand Down

0 comments on commit c3496e0

Please sign in to comment.