chore: remove structuralSharing

This commit is contained in:
Stephen Zhou 2024-11-19 20:05:13 +08:00
parent 518a32f2ce
commit d0775162af
No known key found for this signature in database
2 changed files with 0 additions and 7 deletions

View File

@ -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)

View File

@ -39,7 +39,6 @@ export const entries = {
}),
{
rootKey: ["entries", inboxId || listId || feedId],
structuralSharing: false,
},
),
byId: (id: string) =>