Commit 4dca773
Update fork (#1)
* docs: added more detailed explanation of what the cache timeout does in the detailed walkthough of useQuery (TanStack#928)
Co-authored-by: Clayton Marshall <claytn@claytons-mbp.lan>
* Update index.js
* Add queryCache de/rehydration (TanStack#728)
* chore(hydration): set up separate hydration entry point
* feat(hydration): add support for de/rehydrating queryCaches
- Add dehydrate(queryCache, config)
- Add hydrate(queryCache, dehydratedQueries, config)
- Add useHydrate(dehydratedQueries, config)
* test(hydration): fix broken type in test
* rename scheduleTimeoutsManually to activateTimeoutsManually
* docs(hydration): add API-docs for hydration and update comparison
* docs(ssr): update ssr-docs with new approach based on de/rehydration
* remove activateTimeoutsManually
* add default shouldDehydrate
* add hydration/ReactQueryCacheProvider
* use unknown for initialData in dehydration
* rename initialQueries and dehydratedQueries to dehydratedState
* include queryKey instead of queryHash in dehydration
* update initialQueries to dehydratedState in ssr guide docs
* remove shouldHydrate-option
* feat: determine staleness locally instead of globally (TanStack#933)
* fix: add hydration.js to npm files
* fix: add hydration.js to npm files
* fix: make sure initial data is used when switching queries (TanStack#944)
* feat: change ReactQueryCacheProvider from hydration to Hydrate (TanStack#943)
* tests: fix setTimeout for ci tests
* fix: always use config from last query execution (TanStack#942)
* fix: make sure queries with only inactive observers are also invalidated (TanStack#949)
* feat: add notifyOnStatusChange flag (TanStack#840)
* docs: update comparison
Closes TanStack#920
* docs: update supporters and comparison
* docs: fix sponsors rendering
* fix: ignore errors from background fetches (TanStack#953)
* feat: add forceFetchOnMount flag (TanStack#954)
* feat: add isPreviousData and isFetchedAfterMount flags (TanStack#961)
* docs(react-native): add solution for fullscreen error (TanStack#958)
* docs: update sponsors
* fix: use hook config on refocus or reconnect (TanStack#964)
* docs: typo in useQuery.test (TanStack#965)
* fix: make sure setQueryData is not considered as initial data (TanStack#966)
* refactor: cleanup to reduce file size and add tests (TanStack#969)
* Update devtools.md (TanStack#973)
Separate the sentences based on contex
* fix: export hydration types (TanStack#974)
* docs: update sponsors
* fix(hydration): overwrite the existing data in the cache if hydrated data is newer (TanStack#976)
* refactor: optimize render path and improve type safety (TanStack#984)
* feat: add reset error boundary component (TanStack#980)
* refactor: remove unused deepEqual function (TanStack#999)
* fix: cancel current fetch when fetching more (TanStack#1000)
* fix: notify query cache on stale (TanStack#1001)
* test: add previous data test (TanStack#1003)
* feat: add support for tree shaking (TanStack#994)
* fix: useInfinityQuery fetchMore should not throw (TanStack#1004)
* docs: update api docs (TanStack#1005)
* refactor: remove query status bools (TanStack#1009)
* fix: make sure initial data always uses initial stale (TanStack#1010)
* feat: add always option to refetch options (TanStack#1011)
* feat: export QueryCache and remove global query cache from docs and examples (TanStack#1017)
* docs: remove shared config (TanStack#1021)
* feat: add remove method and deprecate clear (TanStack#1022)
* fix: should be able to invalidate queries (TanStack#1006)
* fix: should throw error when using useErrorBoundary (TanStack#1016)
* docs: Add graphql docs
* docs: add graphql-request example
* docs: update graphql docs
* docs: add graphql example
* feat: implement batch rendering (TanStack#989)
* docs: Update comparison.md
* docs: Update essentials banner
* docs: reorder homepage
* fix: accept any promise in useMutation callbacks (TanStack#1033)
* docs: prefer default config of QueryCache (TanStack#1034)
* fix: include config callbacks in batch render (TanStack#1036)
* docs: update example deps
* docs: fix comparison 3rd party website links (TanStack#1040)
* Remove storing the return value of queryCache.removeQueries (TanStack#1038)
Removed storing the return value of `queryCache.removeQueries` as it doesn't return anything.
* feat: add QueryCache.fetchQuery method (TanStack#1041)
* docs: add refetch documentation (TanStack#1043)
* docs: fix graphql example link
Closes TanStack#1044
* docs: remove trailing quotes from supporters links (TanStack#1045)
The quotes were breaking the links.
* docs: fix typo in queries page (TanStack#1046)
* fix: prevent bundlers from removing side effects (TanStack#1048)
* test: add invalidate query tests (TanStack#1052)
* fix: query should try and throw again after error boundary reset (TanStack#1054)
* docs: fix `user.id` access in case user is null (TanStack#1056)
* docs: update comparison
* docs: update sponsors
* feat: add QueryCache.watchQuery (TanStack#1058)
* docs: Update invalidations-from-mutations.md (TanStack#1057)
Remove unnecessary parenthesis
Co-authored-by: Clayton Marshall <c.marshall@salesforce.com>
Co-authored-by: Clayton Marshall <claytn@claytons-mbp.lan>
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
Co-authored-by: Fredrik Höglund <fredrik.hoglund@gmail.com>
Co-authored-by: Niek Bosch <just.niek@gmail.com>
Co-authored-by: Dragoș Străinu <str.dr4605@gmail.com>
Co-authored-by: Alex Marshall <alex.k.marshall83@gmail.com>
Co-authored-by: Rudzainy Rahman <rudzainy@gmail.com>
Co-authored-by: Corentin Leruth <corentin.leruth@gmail.com>
Co-authored-by: Evgeniy Boreyko <boreykojenya@yandex.ru>
Co-authored-by: Pierre Mdawar <pierre@mdawar.dev>
Co-authored-by: Juliano Farias <thefrontendwizard@gmail.com>
Co-authored-by: Twinkle <saintwinkle@gmail.com>
Co-authored-by: Julius-Rapp <61518032+Julius-Rapp@users.noreply.github.com>
Co-authored-by: cheddar <chad@cmfolio.com>1 parent 8f6bdf3 commit 4dca773
File tree
144 files changed
+6972
-122807
lines changed- docs/src
- manifests
- pages
- docs
- examples
- guides
- examples
- auto-refetching
- pages
- basic-graphql-request
- public
- src
- basic
- src
- custom-hooks
- src
- default-query-function
- src
- focus-refetching
- pages
- load-more-infinite-scroll
- pages
- optimistic-updates
- pages
- pagination
- pages
- playground
- src
- prefetching
- pages
- rick-morty
- src
- simple
- src
- star-wars
- src
- suspense
- src
- components
- src
- core
- tests
- hydration
- tests
- react
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
144 files changed
+6972
-122807
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
45 | 55 | | |
46 | 56 | | |
47 | 57 | | |
48 | 58 | | |
49 | | - | |
| 59 | + | |
50 | 60 | | |
51 | 61 | | |
52 | 62 | | |
| |||
151 | 161 | | |
152 | 162 | | |
153 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
154 | 170 | | |
155 | 171 | | |
156 | 172 | | |
| |||
165 | 181 | | |
166 | 182 | | |
167 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
168 | 189 | | |
169 | 190 | | |
170 | 191 | | |
| |||
228 | 249 | | |
229 | 250 | | |
230 | 251 | | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | 252 | | |
238 | 253 | | |
239 | 254 | | |
0 commit comments