-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
RTK-QueryReact-NativeIndicates an issue specific to the React Native environmentIndicates an issue specific to the React Native environmentdocs
Description
Hi, reading the docs at https://redux-toolkit.js.org/rtk-query/usage/cache-behavior#re-fetching-on-window-focus-with-refetchonfocus
I expect my queries to be refetched when the app is gaining focus again when running in the background for a while...but nothing happens.
export const apiSlice = createApi({
baseQuery: baseQueryWithReauth,
endpoints: () => ({
...
}),
refetchOnFocus: true,
});
What do I miss?
ronnaf, svyatoslavratov, lid3rs and rico001
Metadata
Metadata
Assignees
Labels
RTK-QueryReact-NativeIndicates an issue specific to the React Native environmentIndicates an issue specific to the React Native environmentdocs