Commit ac342e2
v3 (#1360)
* feat: initial v3 changes (#1079)
* force website deploy
* docs: v3 updates
* docs: More documentation improvements
* docs: update query filters page
* docs: update query keys
* docs: more updates
* docs: updates
* feat: support multiple subscribers in observers
* docs: useMutation updates
* fix: mutate argument types and state update order
* fix: remove cache argument in cache callback
* fix: move optimistic fetching state into query observer
* fix: make sure default options can be overridden
* fix: type improvements
* feat: memoize select function result
* fix: only suspend when mounting
* docs: refactor to top level pages and multiple api reference pages per export
* test: add remove query test
* feat: add filters client isFetching and useIsFetching hook
* docs: temp move docs back to docs directory
* docs: solve conflicts
* docs: fix queryClient reference
* docs: reorg directory structure
* docs: fix queryClient reference
* docs: fix links
* docs: better phrasing
* docs: force docs build
* docs: update examples
* fix: use updatedAt to check for existing data
* feat: add structural sharing to select result
* refactor: update hashing terminology
* test: add ability to wrap react query updates with React act
* refactor: replace console with logger implementation
* docs: add migration page to navigation
* docs: update installation docs
* refactor: reduce file size
* docs: update examples
* fix: always compare query keys as arrays
* refactor: mark observers as private
* test: update timings in hydration cache time test
* docs: Update queries.md (#1134)
* feat: split mutate into mutate and mutateAsync (#1130)
* feat: split mutate into mutate and mutateAsync
* docs: Update docs/src/pages/guides/mutations.md
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
* feat: add bi-directional infinite query support (#1135)
* refactor: reduce file size
* feat: revert to previous state on cancellation
* fix: wait for all queries to cancel
* docs: update cancellation docs
* build: force
* build: add beta build
* build: add beta build
* docs: update comparison
* fix: support infinite cache time when hydrating
* refactor: explicitly mark package side effects
* docs: update comparison
* docs: update comparison
* fix: remove excess exports
* feat: add support for default options when hydrating
* docs: fix links
* feat: add options to setQueryData
* fix: align notify terminology
* feat: Major semver bump
BREAKING CHANGE: Increment Major Version
* fix: always try to fetch if enabled
* feat: bump version
* fix: refetch should create new query when removed
* chore: do not publish beta until we figure this out
* make beta prerelease
* dry run releases
* fix: test dry run semantic release
* release beta releases for realzies
* test: add eslint rule
* docs(useQuery): change manual to enabled (#1167)
* feat: move mutations into the core (#1162)
* feat: tree shake infinite query and support manual updates
* docs: update comparison
* refactor: remove observer factory
* refactor: add subscribable
* refactor: move hasListeners
* refactor: optimize bundle
* fix: add status bools to use mutation result
* feat: api update
* fix: add defaults to UseMutationOptions type
* docs: add pages
* fix: cleanup
* refactor: use queryCache property directly
* docs: Add placeholder data guide
* docs: fix typo
* fix: keep previous query status when fetching
* fix: stop retry when observers unmount
* feat: add additional notify flags
* fix: only keep notify on stale option
* refactor: only batch react callbacks
* test: update timings
* refactor: also batch in suspense
* feat: add hydration support for mutations
* fix: remove query immediately if cacheTime is 0
* fix: prevent infinite fetch loop
* refactor: move refetch logic into observer
* fix: match query key correctly when setting defaults
* test: add query defaults test
* fix: re-add useMutation callback composition
* feat: use set defaults also for observers
* test: add enabled assertion
* feat: add ability to manually control the online and focus state
* docs: update onlineManager documentation
* feat: add discriminated unions for query results (#1247)
* fix: only set state in listeners when provided
* docs: add testing page
* feat: add query function context (#1261)
* feat: add errorUpdatedAt property
* fix: only trigger suspense when loading for the first time
* fix: make sure suspense is always triggered when loading a query
* fix: add ability to type the query key in the query function context
* refactor: make isDataEqual type more specific
* docs: update react native focus code
* fix: make sure to remove the correct query from cache
* test: remove only
* feat: add granular component re-render control
* fix: make sure component re-render when they should
* feat: throw error when QueryClientProvider has not been used to set a query client (#1309)
Also updated docs
* test: add invalidateQueries test
* fix: prevent state update after mutation unmounted
* fix: add defaults to setQueryData
* fix: cancellations for useInfiniteQuery (#1359)
* chore: update TypeScript version (#1314)
* Merge branch 'master' into beta
* fix(hydration): set fetchMeta to null by default to make it serializable (#1371)
* fix(hasPageParam): look for (undefined | null | false) values
* chore: fix linting
* fix: cross-bundle/version query client context
* docs: Update Examples
* docs: update example deps
* docs: keepPreviousData not set in paginated queries docs (#1376)
* docs: typo infinite instead of ininite (#1379)
* feat: devtools are now native to the core repo/npm-package
* feat(persist-localstorage-experimental): temporarily persist cache to disk
* tests: fix linting
* chore: attempt codesandbox import fix
* chore: revert codesandbox fix
* fix(persist-localstorage): add ssr-safety
* docs: fix typos in migration and queries guide (#1387)
Fix typos in guides/migrating-to-react-query-3 and guides/queries.
Fixes #1378
* docs(typos): fix typos in mutations guide (#1392)
* docs: update migration guide
* docs: update comparison
* chore: remove vercel.json
* docs: update comparison
* Update logo.sketch
* feat: reset query utils (#1375)
* feat: reset query utils
* Update queryClient.ts
* Reset query docs and tests (#1393)
* docs: Add resetQueries
* test: Add resetQueries tests
* remove unnecessary queryCache.reset methods
Co-authored-by: Aaron Jensen <aaronjensen@gmail.com>
* types: fix mutation context type
* fix: isFetched and isFetchedAfterMount should include failed fetches
* docs: Persist localstorage plugin
* feat: resetQueries refetches active queries (#1397)
Co-authored-by: Niek Bosch <just.niek@gmail.com>
Co-authored-by: Abhijeet Singh <contact.abhijeetsingh@gmail.com>
Co-authored-by: JP Angelle <jp@angelle.me>
Co-authored-by: Jake Ginnivan <jake@ginnivan.net>
Co-authored-by: Tom Klaver <tomklav@gmail.com>
Co-authored-by: Dmitry Ivanov <liseniss@gmail.com>
Co-authored-by: Corentin Leruth <tinencor@gmail.com>
Co-authored-by: ConneXNL <contact@ivia-solutions.com>
Co-authored-by: Rubén Moya <rmoyarodriguez@gmail.com>
Co-authored-by: Pascal Wegner <p.wegner1992@gmail.com>
Co-authored-by: Amen SOUISSI <48829921+amen-souissi@users.noreply.github.com>
Co-authored-by: Aaron Jensen <aaronjensen@gmail.com>1 parent 8aeb209 commit ac342e2
File tree
280 files changed
+15846
-10858
lines changed- .github/workflows
- core
- devtools
- docs
- src
- components
- blog
- lib/docs
- manifests
- pages
- docs
- guides
- examples
- guides
- plugins
- reference
- hydration
- examples
- auto-refetching
- pages
- basic-graphql-request
- src
- basic
- src
- custom-hooks
- src
- hooks
- default-query-function
- src
- focus-refetching
- pages
- gql-blog
- public
- src
- components/Layout
- pages
- utils
- load-more-infinite-scroll
- pages
- api
- nextjs
- components/PostList
- hooks/usePosts
- pages
- optimistic-updates
- pages
- pagination
- pages
- playground
- src
- prefetching
- pages
- [user]
- rick-morty
- src
- simple
- src
- star-wars
- src
- suspense
- src
- components
- hydration
- media
- persist-localstorage-experimental
- react
- src
- core
- tests
- devtools
- tests
- hydration
- tests
- persist-localstorage-experimental
- react
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
280 files changed
+15846
-10858
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
35 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
43 | 52 | | |
44 | 53 | | |
45 | 54 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 55 | | |
63 | 56 | | |
64 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments