Tags: zhuanghongji/query
Tags
fix: `replaceDeepEqual` special case for non-plain arrays (TanStack#3669 ) * Fix case where replaceDeepEqual was returning incorrect value for non-plain arrays * fix pr comments
feat: make InfiniteQueryObserver's type more robust (TanStack#3571) Co-authored-by: 廖璇 <arthur.liao@huolala.cn>
fix(types): remove non-void constraint from queryFn result (TanStack#… …3666) * fix(types): remove non-void constraint from queryFn result * test(types): remove non-void tests, and add tests for handling fetch -> promise<any> * test(types): remove ts-expect-error from query test file
fix(persist): remove environment check (TanStack#3658) because we can now pass in undefined for persisters during SSR, and the persisters themselves are not window related anymore, as we don't use window.localStorage directly
fix(types): make sure queryClient.setQueriesData can return undefined… … from the updater (TanStack#3657)
fix(infiniteQuery): do not consume AbortSignal unless user has consum… …ed it (TanStack#3507) * fix(infiniteQuery): do not consume AbortSignal unless user has consumed it calling context.signal?.addEventListener did consume the signal * fix(infiniteQuery): do not consume AbortSignal unless user has consumed it fix formatting * re-write test to reflect the reality we want to continue fetching pages in the background even if the infinite query unmounts, unless the abort signal has been consumed. That is the documented behaviour, and also what useQuery is doing. * fix test
fix: make sure isDataEqual option is respected everywhere where we us… …e structuralSharing (TanStack#3643)
PreviousNext