* chore(*): adopt '@tanstack/oxlint-config' and '@tanstack/oxfmt-config', and fix the newly reported lint errors
* chore(pnpm-lock.yaml): run 'pnpm dedupe'
* chore(scripts): move 'oxlint/plugin.ts' to 'oxlint-plugin.ts' to match the flat layout of 'scripts'
* chore(pnpm-workspace.yaml): update '@typescript-eslint/parser' and '@typescript-eslint/rule-tester' to '^8.72.1' to match the deduped '@typescript-eslint/utils'
* docs(queryClient): add example for refetchQueries with stale: true and type: active
* docs(react-native): modify useRefreshOnFocus example
* docs(react-native): add queryKey in useRefreshOnFocus example
* Apply suggestion from @TkDodo
* ci: apply automated fixes
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* feat(react-query): allow useQuery and useQueries to unsubscribe from the query cache with an option
* test: subscribed
* fix: revert calling getOptimisticResult later
* docs(react): update the react-native.md section (#8506)
* update the doc
* update the doc
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* docs: reference
---------
Co-authored-by: Florian De la comble <f.delacomble@gmail.com>
* Add possibility to pass a callback to enabled.
* Refactor into using the same pattern as resolving staletime, with the use of a resolveEnabled util function
* Update tests for enabled option as a callback
* update docs
* remove typo
* Update enabled type in docs
* remove duplicated test case
* Fix eslint errors
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: John Pettersson <john.pettersson@carnegie.se>
The React Native example previously used `<div> </div>` tags and as we all know, divs are a react thing.
This PR fixes that by using the intended (I believe) `<Text> </Text>` tags