Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

window-focus-refetching.md

25 lines504 Bytes

1---
2id: window-focus-refetching
3title: Window Focus Refetching
4ref: docs/framework/react/guides/window-focus-refetching.md
5replace: { '@tanstack/react-query': '@tanstack/vue-query' }
6---
7​
8[//]: # 'Example'
9​
10```js
11const vueQueryPluginOptions: VueQueryPluginOptions = {
12 queryClientConfig: {
13 defaultOptions: {
14 queries: {
15 refetchOnWindowFocus: false,
16 },
17 },
18 },
20app.use(VueQueryPlugin, vueQueryPluginOptions)
21```
22​
23[//]: # 'Example'
24[//]: # 'ReactNative'
25[//]: # 'ReactNative'