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
Calling initiate with {subscribe: false} seems to be resetting keepUnusedDataFor and cached data never expires
// default keepUnusedDataFor is 60s// Does the request and caches the data as expectedstore.dispatch(api.endpoints.myEndpoint.initiate({},{subscribe: false}))// Does not trigger a request and uses cached data as expectedsetTimeout(()=>store.dispatch(api.endpoints.myEndpoint.initiate({},{subscribe: false})),30*1000);// Does not trigger a request and uses cached data which should be expiredsetTimeout(()=>store.dispatch(api.endpoints.myEndpoint.initiate({},{subscribe: false})),61*1000);
The text was updated successfully, but these errors were encountered:
Calling
initiate
with{subscribe: false}
seems to be resettingkeepUnusedDataFor
and cached data never expiresThe text was updated successfully, but these errors were encountered: