chore: remove structuralSharing
This commit is contained in:
parent
518a32f2ce
commit
d0775162af
|
|
@ -45,8 +45,6 @@ export type DefinedQuery<TQueryKey extends QueryKey, TData> = Readonly<{
|
|||
restore: () => void
|
||||
invalidate: () => void
|
||||
}>
|
||||
|
||||
structuralSharing?: boolean
|
||||
}>
|
||||
|
||||
export type DefinedQueryOptions<TData> = {
|
||||
|
|
@ -60,8 +58,6 @@ export type DefinedQueryOptions<TData> = {
|
|||
onRefetchRoot?: () => void
|
||||
onOptimisticUpdate?: () => void
|
||||
onOptimisticUpdateRestore?: () => void
|
||||
|
||||
structuralSharing?: boolean
|
||||
}
|
||||
|
||||
export function defineQuery<
|
||||
|
|
@ -171,8 +167,6 @@ export function defineQuery<
|
|||
optimisticInfiniteUpdate(updater) {
|
||||
return queryDefine.optimisticUpdate<InfiniteData<TData>>(updater)
|
||||
},
|
||||
|
||||
structuralSharing: options?.structuralSharing,
|
||||
}
|
||||
|
||||
return Object.freeze(queryDefine)
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ export const entries = {
|
|||
}),
|
||||
{
|
||||
rootKey: ["entries", inboxId || listId || feedId],
|
||||
structuralSharing: false,
|
||||
},
|
||||
),
|
||||
byId: (id: string) =>
|
||||
|
|
|
|||
Loading…
Reference in New Issue