You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/pages/docs/api.md
+16-8Lines changed: 16 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,12 +94,24 @@ const queryInfo = useQuery({
94
94
- `refetchIntervalInBackground:Boolean`
95
95
- Optional
96
96
- If set to `true`, queries that are set to continuously refetch with a `refetchInterval` will continue to refetch while their tab/window is in the background
97
-
- `refetchOnWindowFocus:Boolean`
97
+
- `refetchOnMount: boolean |"always"`
98
98
- Optional
99
-
- Set this to `true` or `false` to enable/disable automatic refetching on window focus for this query.
100
-
- `refetchOnReconnect:Boolean`
99
+
- Defaults to `true`
100
+
- If set to `true`, the query will refetch on mount if the data is stale.
101
+
- If set to `false`, will disable additional instances of a query to trigger background refetches.
102
+
- If set to `"always"`, the query will always refetch on mount.
103
+
- `refetchOnWindowFocus: boolean |"always"`
104
+
- Optional
105
+
- Defaults to `true`
106
+
- If set to `true`, the query will refetch on window focus if the data is stale.
107
+
- If set to `false`, the query will not refetch on window focus.
108
+
- If set to `"always"`, the query will always refetch on window focus.
109
+
- `refetchOnReconnect: boolean |"always"`
101
110
- Optional
102
-
- Set this to `true` or `false` to enable/disable automatic refetching on reconnect for this query.
111
+
- Defaults to `true`
112
+
- If set to `true`, the query will refetch on reconnect if the data is stale.
113
+
- If set to `false`, the query will not refetch on reconnect.
114
+
- If set to `"always"`, the query will always refetch on reconnect.
103
115
- `notifyOnStatusChange:Boolean`
104
116
- Optional
105
117
- Set this to `false` to only re-render when there are changes to `data` or `error`.
@@ -134,10 +146,6 @@ const queryInfo = useQuery({
134
146
- Optional
135
147
- Defaults to `false`
136
148
- Set this to `true` to always fetch when the component mounts (regardless of staleness).
137
-
- `refetchOnMount:Boolean`
138
-
- Optional
139
-
- Defaults to `true`
140
-
- If set to `false`, will disable additional instances of a query to trigger background refetches
0 commit comments