Closed
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?