Comments (4)
I think there was some discussion in the original issue around possibly trying to make the behavior more targeted in which queries it waits for, but we opted to defer that aspect in order to get 2.0 out the door.
from redux-toolkit.
yeah, this is a 2.0 change - you can set invalidationBehavior: 'immediate'
to use the 1.9 behaviour.
from redux-toolkit.
@EskiMojo14 I get the idea behind the 'delayed' option as I also experienced issues with the 'immediate'. However, I feel like this is delayed a bit too much if you know what I mean. Why would the invalidation of a query wait for another query to finish loading?
from redux-toolkit.
I have some long-running queries in a production environment and can't do much about it. They kind of run in the background and are not blocking user actions with other parts of the UI. When the user does some actions that invalidate the tags of those immediate queries, they are not being re-fetched until this long-running one finishes loading. I know I can fix this case by changing to 'immediate' invalidationBehavior, but I really would like to find a solution that does not require that change
from redux-toolkit.
Related Issues (20)
- isSuccess value turning true while status: "pending" HOT 2
- Support for arbitrary properties in RTK Query tags
- Export DraftableEntityState, IsAny, UseQuery and other types HOT 3
- retryCondition() in retry() in version 2.2.4 no longer type checks HOT 2
- feat req: URL building helpers for RTK query? HOT 4
- Error: could not find react-redux context value; please ensure the component is wrapped in a <Provider> HOT 1
- listenerMiddleware/error Error: [Immer] 'current' expects a draft, got: HOT 3
- [request]: Global utility to clear all API cache HOT 3
- Error: Unable to resolve module ./redux-toolkit.production.min.cjs from /Users/alok_prakash/Documents/Projects/buyer-app/node_modules/@reduxjs/toolkit/dist/cjs/index.js: HOT 1
- dispatch does not work, when i try to manually update cache in pessimistically or optimistically. Also show an error in apiSlice.util.updateQueryData("getTodos", undefined, (draft) => {} line show this error "getTodos" "Argument of type 'string' is not assignable to parameter of type 'never'" HOT 4
- Invalidation tags do not work when polling interval is added to query hook HOT 1
- How to connect createListenerMiddleware with RTK Query endpoints call?
- createEntityAdapter add an item on the top on the list instead of the bottom HOT 4
- Selectors don’t have types? HOT 1
- Missing single reducer during INIT HOT 1
- Issue: Circular Dependency in RTK Query with Code-Splitting Endpoints HOT 4
- All createDraftSafeSelector in my app broken, with “No overload matches this call” when running Vite build after migrating from version 2.2.3 HOT 6
- SyntaxError: Unexpected token '??=' when running unit tests with Redux Toolkit 2.2.5 and Jest HOT 1
- RTK query with invalidate tags
- Help migrating from RTK to RTKQ, selecting data from RTKQ
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redux-toolkit.