Tanner Linsley
2e9b426541
release: v4.35.1
v4.35.1
2023-09-07 08:10:20 +00:00
Alex Liu
35a4dd7a7a
fix(vue-query): ensure built-in types are not being unwrapped in queryFn context ( #5954 )
...
* fix(vue-query): ensure built-in types are not being unwrapped
* chore: prettier
* feat(vue-query): rename `Builtin` to `UnwrapLeaf` and add mor leaf
2023-09-07 10:06:51 +02:00
Tanner Linsley
4185c51e6c
release: v4.35.0
v4.35.0
2023-09-07 08:06:18 +00:00
zhong666
d11280ea27
feat(vue-query): useQuery support ref args ( #5027 )
...
* feat(vue-query): useQuery support ref args
* fix: format
* chore: remove `queryFn` as `MaybeRef`
* Revert "chore: remove `queryFn` as `MaybeRef`"
This reverts commit d2a2d6c8a7 .
2023-09-07 10:02:52 +02:00
Alex Liu
716c5d8b09
chore(query-core): add deprecated hint for isDataEqual ( #5962 )
2023-09-05 18:45:05 +02:00
Jonghyeon Ko
ef5125f68b
docs: update suspensive-react-query.md ( #5961 )
2023-09-05 15:35:34 +02:00
Heloi Neto
dfad1cf192
docs: fix typo in optimistic-updates.md ( #5960 )
2023-09-05 14:14:03 +02:00
Vince Fulco--Bighire.tools
84cd232e81
docs: Update queries.md ( #5958 )
...
Fixed some grammar and spacing
2023-09-05 11:40:16 +02:00
Dominik Dorfmeister
201735927f
chore: prepare possibility to have rc releases
2023-09-03 10:56:32 +02:00
Tanner Linsley
ea48ce85e6
release: v4.34.4
v4.34.4
2023-09-01 19:15:50 +00:00
Alex Liu
150da8a42e
fix(vue-query): ensure the queryFn parameter has the correct type ( #5935 )
...
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2023-09-01 21:13:04 +02:00
Prateek Parashar
96b844e22e
docs: Removed LayoutData type from "Using prefetchQuery" example ( #5934 )
...
There's no need to have a return type `LayoutData` on the `load()` function in the example `export async function load(): LayoutData {}`, because svelte is able to infer the return type itself. In fact, you actually get a warning from typescript if you use it :- "Return type annotation circularly references itself."
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-09-01 14:16:02 +02:00
Tanner Linsley
737110d6b7
release: v4.34.3
v4.34.3
2023-09-01 05:46:08 +00:00
Mark Brockhoff
cbda68de92
fix(vue-query): Make query options watchers sync ( #5929 )
...
* fix: make watcher for queryOptions sync to reflect changes to them immediately
* fix: make option watchers sync for other composibles
* test: improve test for dependent queries
* test: update test to check for dependent query to be called with the correct key
* docs: fix example to use queryKey instead of reactive variable
* test: resolve mock queryFn
* test: keep fetch status checks in test for dependent queries
---------
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2023-09-01 07:43:02 +02:00
Lachlan Collins
744e5eadd4
chore: Update Nx dependencies ( #5941 )
2023-09-01 10:00:02 +10:00
Fabien
1c2171755b
doc(react-query): useInifiniteQuery fetching state and fetchNextPage … ( #5933 )
...
* doc(react-query): useInifiniteQuery fetching state and fetchNextPage guidance
* Correct sentence
2023-08-31 14:54:33 +02:00
Damian Osipiuk
98c0803ff8
docs(vue-query): fix migration guide link, add injectionContext section ( #5936 )
2023-08-30 23:56:18 +02:00
Tanner Linsley
395a9a1378
release: v5.0.0-beta.22
v5.0.0-beta.22
2023-08-30 08:20:03 +00:00
Eduardo San Martin Morote
a0fae505d9
feat(vue-query): support injectable contexts ( #5886 )
...
* feat(vue-query): support injectable contexts
This feature requires Vue 3.3.0, which has been out for a while now. It
allows using vue-query APIs in places where it is valid to use them but
currently throws an error.
- `hasInjectionContext()`: https://github.com/vuejs/core/pull/8111
- `app.runWithContext()`: https://github.com/vuejs/core/pull/7451
* refactor: add dev warning for effectScope
* fix: add memory leak warnings, fix tests
* chore: bump vue-demi
* chore: bump vue version in integrations
---------
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2023-08-30 10:11:28 +02:00
Tanner Linsley
a496b3d74f
release: v5.0.0-beta.21
v5.0.0-beta.21
2023-08-29 15:38:37 +00:00
Aadit Olkar
f97742ef36
feat(solid-query-persist-client): Solid.js implementation of client persistence ( #5858 )
...
* added solid-query-persist-client package
* isRestoring context
* convert persistence logic to solid
* modify tests for Solid
* modify test for increased reactivity
* fix Provider
* fix jest for Solid
* add isRestoring logic
* prettier + lint
* make fixes to pass tests
* change testing to vitest
* add isRestoring check
* update test
* fix staleTime test
* add unsubscribe condition
* formatting
* update createBaseQuery to refetch after hydration
* refetch on hydration
* formatting and build test fix
* T[] -> Array<T>
* changed useQueryClient to return a signal
* keep queryClient reactive, without breaking API
2023-08-29 11:31:45 -04:00
Tanner Linsley
35f23929a8
release: v4.34.2
v4.34.2
2023-08-29 08:59:34 +00:00
Dominik Dorfmeister
280682e9a9
fix(query-broadcast-client): allow passing all broadcast-channel options ( #5925 )
...
* fix(query-broadcast-client): allow passing in type for the channel
allowed values are: 'native', 'idb', 'localstorage', 'node'
* fix(query-broadcast-client): allow passing all broadcast-channel options
* docs: options
2023-08-29 10:56:52 +02:00
rliljest
8cedf5c302
docs: update suspense.md ( #5923 )
...
* docs: update suspense.md
Fixes https://github.com/TanStack/query/issues/5920
* Update docs/react/guides/suspense.md
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-08-29 10:07:03 +02:00
Tanner Linsley
34f1e8c960
release: v4.34.1
v4.34.1
2023-08-28 08:33:06 +00:00
justsaul
1f09400d1f
fix(eslint-plugin-query): provide missing peerDependencies ( #5917 )
...
* fix(eslint-plugin-query): provide missing peerDependencies
* Update packages/eslint-plugin-query/package.json
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-08-28 10:30:41 +02:00
Tanner Linsley
6d0538a032
release: v5.0.0-beta.20
v5.0.0-beta.20
2023-08-25 20:46:40 +00:00
Alex Liu
5e958af2d4
perf(vue-query): reduce unnecessary computed() in useIsFetching ( #5905 )
...
* perf(vue-query): reduce unnecessary `computed()`
* chore: rename function
* refactor: use `watchSyncEffect` instead of `watchEffect`
2023-08-25 22:42:32 +02:00
Peter Mouland
78d473db42
docs(use-queries): fix documented examples ( #5902 )
2023-08-25 14:11:09 +02:00
Ho Chan Lee
857ecd91b6
docs(migrating-to-react-query-4): update description of refetchactive--refetchinactive ( #5904 )
2023-08-24 16:22:18 +02:00
Tanner Linsley
845751180d
release: v4.34.0
v4.34.0
2023-08-23 07:43:38 +00:00
Alex Liu
1858966fb9
feat(vue-query): support invoke in vue runWithContext() ( #5703 )
...
* feat: support invoke in vue `runWithContext()`
* chore: run prettier
* feat(vue-qury): add a second parameter to inject to avoid vue warning
* test: update test
* fix: add warning about potential memory leak
---------
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2023-08-23 09:40:53 +02:00
Dominik Dorfmeister
13b17ee45d
chore(eslint): set array-type lint rule to generic ( #5899 )
...
* chore(eslint): set array-type lint rule to generic
* chore: fix prettier
2023-08-22 14:18:01 +02:00
Tanner Linsley
770d454fef
release: v5.0.0-beta.19
v5.0.0-beta.19
2023-08-21 06:40:12 +00:00
ecyrbe
94d6b6bdf3
fix(infinite query): fix inferrence issue ( #5892 )
...
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2023-08-21 08:32:15 +02:00
Tanner Linsley
4a907932ae
release: v5.0.0-beta.18
v5.0.0-beta.18
2023-08-20 06:45:25 +00:00
moshyfawn
3aa0680707
refactor(infinite-queries): rename defaultPageParam to initialPageParam ( #5888 )
...
* refactor(query-core): rename defaultPageParam to initialPageParam
Closes : #5885
* test(query-core): rename defaultPageParam to initialPageParam
* test(react-query): rename defaultPageParam to initialPageParam
* test(solid-query): rename defaultPageParam to initialPageParam
* test(vue-query): rename defaultPageParam to initialPageParam
* build(codemods): rename defaultPageParam to initialPageParam
* docs(react-query, examples): rename defaultPageParam to initialPageParam
* docs(react-query): rename defaultPageParam to initialPageParam
* docs(svelte-query, examples): rename defaultPageParam to initialPageParam
2023-08-20 08:38:21 +02:00
Damian Osipiuk
a41f0bfdee
docs(vue-query): update typescript page examples and playgrounds, add link to custom-client page ( #5890 )
...
* docs(vue-query): update typescript page examples and playgrounds
* docs(vue-query): add link to custom-client page
2023-08-19 23:15:07 +02:00
Tanner Linsley
787efb5d32
release: v5.0.0-beta.17
v5.0.0-beta.17
2023-08-19 19:12:13 +00:00
Alex Liu
74f797056d
perf(vue-query): avoid unnecessary deep watch ( #5842 )
...
* perf(vue-query): avoid unnecessary deep watch
* update
2023-08-19 21:09:30 +02:00
Tanner Linsley
849967ee80
release: v4.33.1
v4.33.1
2023-08-19 19:06:24 +00:00
Damian Osipiuk
63339fec27
fix(vue-query): add missing clientPersisterOnSuccess callback ( #5889 )
2023-08-19 21:03:50 +02:00
[mediba]Asato Yoshizawa
b2025c364d
docs(queries):add description of isFetching ( #5887 )
2023-08-19 16:22:26 +02:00
Tanner Linsley
56faa1fb68
release: v4.33.0
v4.33.0
2023-08-19 11:34:36 +00:00
Eliya Cohen
fc3c40407d
feat(query-core): expose Query class ( #5874 )
2023-08-19 13:28:57 +02:00
Dominik Dorfmeister
7f69223e9f
test: silence error console in tests where known errors are thrown
2023-08-15 09:37:09 +02:00
Tanner Linsley
31f6b2dbf3
release: v5.0.0-beta.16
v5.0.0-beta.16
2023-08-15 07:22:13 +00:00
Dominik Dorfmeister
3a16867a12
fix(types): initialData function that returns undefined should still discriminate after isSuccess check ( #5869 )
2023-08-15 09:18:14 +02:00
Jonghyeon Ko
314f23e8e5
chore(pnpm-lock.yaml): update ( #5848 )
2023-08-15 09:17:01 +02:00
CoolSpring8
047005e134
docs(query-cancellation): reflect AbortController is now required ( #5843 )
2023-08-05 14:23:01 +02:00