-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Comparing changes
Open a pull request
base repository: TanStack/query
base: v5.59.4
head repository: TanStack/query
compare: main
Commits on Oct 9, 2024
-
fix(react-query): Allow optional initialData in infiniteQueryOptions (#…
…8154) * fix(react-query): Allow optional initialData in infiniteQueryoptions * fixup! fix(react-query): Allow optional initialData in infiniteQueryoptions --------- Co-authored-by: chosunghoon <shcho@team-everywhere.com> Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Configuration menu - View commit details
-
Copy full SHA for 8d03029 - Browse repository at this point
Copy the full SHA 8d03029View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44b70f1 - Browse repository at this point
Copy the full SHA 44b70f1View commit details -
fix(perf): improve long running task performance in query core (#8107)
* fix: improve long running task performance in query core This addresses two hot spots we have noticed on a large scale enterprise app when profiling with chrome. These changes help to cut down on long running tasks when there are many query calls on the page * refactor: remove two more arrays to be more efficient * refactor: remove queryObserver improvement from PR * refactor: packages/query-core/src/queryObserver.ts remove --------- Co-authored-by: davidaghassi <davidaghassi@robinhood.com> Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Configuration menu - View commit details
-
Copy full SHA for 5499577 - Browse repository at this point
Copy the full SHA 5499577View commit details -
Configuration menu - View commit details
-
Copy full SHA for dcffe89 - Browse repository at this point
Copy the full SHA dcffe89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 81e443c - Browse repository at this point
Copy the full SHA 81e443cView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb341fc - Browse repository at this point
Copy the full SHA eb341fcView commit details -
fix: allow optional initialData object (#8157)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Configuration menu - View commit details
-
Copy full SHA for 329b5f8 - Browse repository at this point
Copy the full SHA 329b5f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f7baef - Browse repository at this point
Copy the full SHA 0f7baefView commit details
Commits on Oct 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e3aca98 - Browse repository at this point
Copy the full SHA e3aca98View commit details -
fix(core): don't consider queries as enabled if they have no observer…
…s and have never fetched (successfully or erroneously) (#8161) it's very likely that this used to be a disabled observer; one other case would be canceling a query while you were initially fetching it, but this is a weird corner case that brings all sorts of troubles additionally, we can check for the queryFn being a skipToken; even if we have data in the cache, when the queryFn is currently set to skipToken, this is means we never want to see this query fetch
Configuration menu - View commit details
-
Copy full SHA for 5228e51 - Browse repository at this point
Copy the full SHA 5228e51View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6469385 - Browse repository at this point
Copy the full SHA 6469385View commit details
Commits on Oct 11, 2024
-
fix(react-query): Allow optional initialData object in queryOptions (#…
…8162) * fix(react-query): Allow optional initialData in infiniteQueryoptions * fix(react-query): Allow optional initialData object in queryOptions * refactor(react-query): removed unnecessary lines in infiniteQueryOptions test --------- Co-authored-by: chosunghoon <shcho@team-everywhere.com>
Configuration menu - View commit details
-
Copy full SHA for 931d98d - Browse repository at this point
Copy the full SHA 931d98dView commit details -
fix(core): correctly gc query when suspense is used when query unmoun…
…ts while it's still fetching (#8168) * fix(core): correctly gc query when suspense is used when query unmounts while it's still fetching the `isFetchingOptimistic` workaround was added to make sure some "thing" I don't remember anymore works in suspense; we added tests for that; however, in the meantime, we added a minimum gcTime for suspense queries, which also solves that problem (tests still work); this makes the `isFetchingOptimistic` workaround unnecessary, and this workaround is actually what causes the unmount issue * chore: try to stabilize a flaky test
Configuration menu - View commit details
-
Copy full SHA for 5edd617 - Browse repository at this point
Copy the full SHA 5edd617View commit details -
Configuration menu - View commit details
-
Copy full SHA for c635194 - Browse repository at this point
Copy the full SHA c635194View commit details -
refactor(types): throw type error when
skipToken
is present in susp……ense query (#8082) * refactor: handle type error when skipToken is present in suspense query * test(react-query): add skipToken test for query hooks * fix: merge form main * ci: apply automated fixes * feat(react-query): display “skipToken is not allowed” message in suspense hooks * feat(react-query): display “skipToken is not allowed” message in suspense hooks * feat(react-query): display “skipToken is not allowed” message in suspense hooks * fix(react-query): update error message in useSuspenseInfiniteQuery * test(react-query): add test case --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Configuration menu - View commit details
-
Copy full SHA for a991d92 - Browse repository at this point
Copy the full SHA a991d92View commit details -
Configuration menu - View commit details
-
Copy full SHA for babf66f - Browse repository at this point
Copy the full SHA babf66fView commit details
Commits on Oct 12, 2024
-
types(react-query): export QueryErrorResetBoundaryFunction (#8089)
* feat(react-query): export QueryErrorResetBoundaryFunction Export the QueryErrorResetBoundaryFunction render prop function signature so users don't have to write wierd types of there own * fix: add extra functions --------- Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Configuration menu - View commit details
-
Copy full SHA for 4dfb0fc - Browse repository at this point
Copy the full SHA 4dfb0fcView commit details -
fix(query-core): move thenable-recreation into createResult (#8169)
* fix: move thenable-recreation into createResult `updateResult` will only be called after a fetch, but when we switch between caches without a fetch, we will only call `createResult`; this fix stops `data` from the queryResult and the `thenable` to go out-of-sync; it's backwards compatible because `updateResult` also invokes `createResult` * oops * test: I'm sick of this flaky test * chore: eslint reports an unused type assertion here
Configuration menu - View commit details
-
Copy full SHA for 4758303 - Browse repository at this point
Copy the full SHA 4758303View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e805fb - Browse repository at this point
Copy the full SHA 8e805fbView commit details -
fix(query-core): don't finalizeThenable of different queries (#8171)
* fix(query-core): don't finalizeThenable of different queries if we have multiple promises in-flight, once they resolve, we need to make sure to not finalize with data / error from a different key; otherwise, we might see intermediate data of non-matching keys * chore: extract promise tests to their own file * test: add a test case for not resolving with intermediate data * fix: only stop finalizing if we were previously in pending state this makes sure we can read stale data from entries when switching to them immediately * chore: add another test for background updates
Configuration menu - View commit details
-
Copy full SHA for 5d69ad7 - Browse repository at this point
Copy the full SHA 5d69ad7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2649e52 - Browse repository at this point
Copy the full SHA 2649e52View commit details
Commits on Oct 13, 2024
-
fix(react-query): do not overwrite staleTime with the suspense defaul…
…t value if it's a function (#8174) * fix(react-query): do not overwrite staleTime with the suspense default value if it's a function * test: improve * chore: fix test
Configuration menu - View commit details
-
Copy full SHA for d409854 - Browse repository at this point
Copy the full SHA d409854View commit details
Commits on Oct 15, 2024
-
fix(react-query): make queryFn optional again (#8176)
* make queryFn optional again * more fix
Configuration menu - View commit details
-
Copy full SHA for a085c92 - Browse repository at this point
Copy the full SHA a085c92View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1adaf3f - Browse repository at this point
Copy the full SHA 1adaf3fView commit details -
fix(react-query): resolve overload matches error with exactOptionalPr…
…opertyTypes in queryOptions (#8186)
Configuration menu - View commit details
-
Copy full SHA for 6c06781 - Browse repository at this point
Copy the full SHA 6c06781View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c720e1 - Browse repository at this point
Copy the full SHA 0c720e1View commit details
Commits on Oct 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1980a11 - Browse repository at this point
Copy the full SHA 1980a11View commit details
Commits on Oct 20, 2024
-
docs(react-query): fix prefetch with suspense example (#8193)
* docs: react prefetch with suspense example * remove notifyOnChangeProps from usePrefetchQuery
Configuration menu - View commit details
-
Copy full SHA for a2ea754 - Browse repository at this point
Copy the full SHA a2ea754View commit details
Commits on Oct 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9d99fcb - Browse repository at this point
Copy the full SHA 9d99fcbView commit details
Commits on Oct 23, 2024
-
chore(react-query): remove unnecessary test file (__test__/suspense.t…
…sx, suspense.test-d.tsx) (#8208) * refactor(react-query): remove unnecessary test file * chore: update
Configuration menu - View commit details
-
Copy full SHA for d3e2a8a - Browse repository at this point
Copy the full SHA d3e2a8aView commit details -
chore(query-core): define queryCache notify method's return type (#8191)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Configuration menu - View commit details
-
Copy full SHA for 4fceb26 - Browse repository at this point
Copy the full SHA 4fceb26View commit details -
fix(react-query): make sure promises are always finalized (#8211)
otherwise, there can be cases with multiple observers where we have listeners already, but still need to finalize
Configuration menu - View commit details
-
Copy full SHA for df49fbd - Browse repository at this point
Copy the full SHA df49fbdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 820bb81 - Browse repository at this point
Copy the full SHA 820bb81View commit details -
chore(docs): update useQueryFocusAware docs (#8205)
* chore(docs): update react native useQueryFocusAware docs * ci: apply automated fixes --------- Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for caf6556 - Browse repository at this point
Copy the full SHA caf6556View commit details
Commits on Oct 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1865f0d - Browse repository at this point
Copy the full SHA 1865f0dView commit details
Commits on Oct 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c61ff1e - Browse repository at this point
Copy the full SHA c61ff1eView commit details
Commits on Nov 2, 2024
-
chore(react-query-persist-client): remove redundant `setIsRestoring(t…
…rue)` to fix lint warning (#8213)
Configuration menu - View commit details
-
Copy full SHA for 39a35d8 - Browse repository at this point
Copy the full SHA 39a35d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for c643635 - Browse repository at this point
Copy the full SHA c643635View commit details -
Configuration menu - View commit details
-
Copy full SHA for fdc5c8e - Browse repository at this point
Copy the full SHA fdc5c8eView commit details
Commits on Nov 3, 2024
-
fix(useQuery): don't retryOnMount when prefetchInRender is used (#8247)
otherwise, queries will not stay in error state, but immediately go into pending + fetching again; this is also shown by the fact that an additional test now failed, because it didn't reset the error boundary correctly
Configuration menu - View commit details
-
Copy full SHA for 74f0d6a - Browse repository at this point
Copy the full SHA 74f0d6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a8354f - Browse repository at this point
Copy the full SHA 1a8354fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f84062 - Browse repository at this point
Copy the full SHA 0f84062View commit details -
docs(community-projects): Add Atomic CRM to the list of community pro…
…jects (#8229) Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Configuration menu - View commit details
-
Copy full SHA for 92defc6 - Browse repository at this point
Copy the full SHA 92defc6View commit details -
fix(query-devtools): handle null properties for __previousQueryOptions (
#8240) Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Configuration menu - View commit details
-
Copy full SHA for 9c93dc0 - Browse repository at this point
Copy the full SHA 9c93dc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8bef6a - Browse repository at this point
Copy the full SHA b8bef6aView commit details
Commits on Nov 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for aa92acc - Browse repository at this point
Copy the full SHA aa92accView commit details -
test(react-query): type test usePrefetchInfiniteQuery correctly (#8223)
* test(react-query): type test usePrefetchInfiniteQuery correctly * chore: update
Configuration menu - View commit details
-
Copy full SHA for 06e315c - Browse repository at this point
Copy the full SHA 06e315cView commit details
Commits on Nov 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 848df62 - Browse repository at this point
Copy the full SHA 848df62View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ce9959 - Browse repository at this point
Copy the full SHA 5ce9959View commit details
Commits on Nov 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2459701 - Browse repository at this point
Copy the full SHA 2459701View commit details
There are no files selected for viewing
This file was deleted.