* fix: avoid reverting state to a fetching one
* Update packages/query-core/src/tests/query.test.tsx
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* Update dependent-queries.md
This is to show how the useQueries hook can also be dependent
* Update dependent-queries.md
* Update dependent-queries.md
* Update docs/react/guides/dependent-queries.md
Thanks
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* Update docs/react/guides/dependent-queries.md
This makes things easy, sometimes I forget we have the select option 😅
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* Update dependent-queries.md
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
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>
* 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>
* 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>
* 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
* 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>