redux-toolkit
redux-toolkit copied to clipboard
The official, opinionated, batteries-included toolset for efficient Redux development
I just tried the new 1.0.0-alpha.1 version and noticed that I can't get the example working. ```bash $ npx @rtk-query/codegen-openapi openapi.dev.config.ts npx: installed 64 in 7.95s Encountered a TypeScript configfile,...
When using `jest.useFakeTimers()`, RTK Query requests resolve normally with `jest.useFakeTimers('legacy')`, but not with `jest.useFakeTimers('modern')` A repo reproducing the issue can be found here: - on jest v26.6.3: https://github.com/Shrugsy/rtk-query-jest-compatibility-test/tree/master - on...
Hi, I noticed that the docs are being changed to better convey how to perform manual cache updated here [1525](https://github.com/reduxjs/redux-toolkit/pull/1525), but I feel that the current implementation can be a...
I used the comments in PR #2007 to implement a proof of concept for the upsertQueryData functionality. I copied and adapted the optimisticUpdate test code to test this. I added...
Closes #2395 ### Description `asyncThunkApi.signal.reason` is set to the first value provided to `asyncThunkHandle.abort`. #### Other changes - fixes `signal.aborted` not being set to `true` in the `AbortController` shim if...
In my API I use a variation of camel casing that preserves uppercase in abbreviations. For example, `userId` becomes `userID`. Normally this is interpreted as camel case and I would...
What i am using: I am using GraphQL api's and Code generator (which automatically generates queries and mutations). ```````````````````````````````````````````````````````````` Error return from the backend in Network: `{"errors":[{"message":"Invalid data","locations":[{"line":2,"column":3}],"path":["testError"]}],"data":null}` ```````````````````````````````````````````````````````````````````````` What...
I have a need to invalidate a query request that is in mid-flight. At least that's what I believe I want to do but I will explain my use case....
Redux Toolkit and RTK Query are awesome, and have really made it easier to get things working quickly and well. What would be really good though is to have support...
I have an open api spec that I've generated a RTK reducer for: ``` "responses": { "200": { "description": "The OK response containing generated HTML", "content": { "text/html": { "schema":...