* fix(angular-query-experimental): run mutation callback in injection context
Previously, the injectMutation callback was run in injection context only if accessed in the same task as the component initialization (i.e. before the `effect` callback run). By running the effect run in injection context, it is ensured that the callback will always run in injection context, and any `inject` calls will not fail.
Note there is a separate issue here, and it's that the callback is always run twice - once synchronously when initialization the mutation, and secondly as the first callback of the `effect`. This is something that can potentially be improved.
No breaking changes, any code that worked before should still work.
* run prettier
* Catch error in test
---------
Co-authored-by: Arnoud <6420061+arnoud-dv@users.noreply.github.com>
allow the inline script to be executed when CSP is enforced by including nonce to the script
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Installation commands for various framework includes prompt symbol.
On execution of same commands IDE throws error
as IDEs by default includes prompt symbol.
This commit resolve this issue
* feat(vue-query): ✨ add support for infiniteQueryOptions
* test(vue-query): ✅ add infiniteQueryOptions types tests
* test(vue-query): ✅ add test for infiniteQueryOptions
* test: ✅ add more infiniteQueryOptions test
* fix: ✅ fix failing test
* docs: use isServer on ssr guides
* refactor: use isServer on nextjs examples
* refactor(react-query-next-experimental): use isServer instead of typeof window
* chore(docs): fix prettier
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* refactor(react-query): improved type inference for useQueries
* test(react-query): improved type inference for useQueries with skipToken
* refactor(vue-query): improved type inference for useQueries with skipToken
* refactor(svelte-query): improved type inference for useQueries with skipToken
* refactor(angular-query): improved type inference for useQueries with skipToken
* refactor(solid-query): improved type inference for useQueries with skipToken
* refactor(*): update defaultQueryOptions type
* refactor(solid-query): updated defaultQueryOptions type in useQueries
* test(vue-query): fixed test for useQueries with skipToken
* refactor(vue-query): ensured accurate error type inference for `useQueries`
* test(vue-query): fixed test for useQueries with skipToken
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* test(vue-query): vitest type test correctly
* test(vue-query): add queryOptions.test.ts to resolve codecov error in PR
* test(vue-query): remove queryOptions.test.ts