fix(core): typecheck after jotai upgraded (#5779)

This commit is contained in:
LongYinan committed 2024-02-01 16:10:14 +00:00
1 parent 45b5800a23
commit 8f4b4e20ab
2 files changed
-2

No files matched your search

@@ -35,7 +35,6 @@ export const List = forwardRef<ItemListHandle, ListProps<ListItem>>(
return (
// push pageListProps to the atom so that downstream components can consume it
// this makes sure pageListPropsAtom is always populated
// @ts-expect-error fix type issues later
<ListProvider initialValues={[[listPropsAtom, props]]}>
<ListInnerWrapper {...props} handleRef={ref}>
<ListInner {...props} />
@@ -77,7 +77,6 @@ export const VirtualizedList = forwardRef<
return (
// push pageListProps to the atom so that downstream components can consume it
// this makes sure pageListPropsAtom is always populated
// @ts-expect-error fix type issues later
<ListProvider initialValues={[[listPropsAtom, props]]}>
<ListInnerWrapper {...props} handleRef={ref}>
<ListInner {...props} />