redux-toolkit
redux-toolkit copied to clipboard
The official, opinionated, batteries-included toolset for efficient Redux development
We kinda hand-waved reviewing some of the TS types. We should make sure that we've got exactly the stuff we want marked as `public`.
Background: RTK query provides built-in exponential retry ( default value 5). The doc mentions one parameter to control retries which is `maxRetries` which requires the query to be wrapped with...
This issue is a combination of docs & api design. The document in question: https://redux-toolkit.js.org/rtk-query/usage/manual-cache-updates Currently `queryFulfilled` returns a promise which will resolve to the data or throw an exception....
Hi, I've searched through all issues (including closed ones) and couldn't find anything about this topic. I love using RTK and RTK Query and I think the examples section is...
Let's say I have a very simple use case where I need to show a list of contacts by hitting this endpoint: > GET api/contacts/:id Using RTK query hooks, it...
This is my `openapi-config.ts` ```ts import type { ConfigFile } from '@rtk-query/codegen-openapi'; const config: ConfigFile = { schemaFile: `http://localhost:3000/api-docs?type=json`, apiFile: './src/redux/emptyAPI.ts', apiImport: 'emptySplitApi', outputFile: './src/redux/myApi.ts', exportName: 'myApi', hooks: { lazyQueries:...
**Describe the bug** I found a bug regarding the combination of declarative and imperativ querying at the same time (Multiple subscribtions). If you execute a lazy query after an invalidation...
Hi all, I noticed that the [documentation for the types of `UseLazyQuery`](https://redux-toolkit.js.org/rtk-query/api/created-api/hooks#signature-4) is out of date. Specifically, `UseQueryStateResult` appears to require two generic parameters as of version 1.8.2, and does...
We've got utils to add and update cache entries, but we don't have one that would _remove_ a specific cache entry by key. We've had a couple requests for something...