redux-toolkit
redux-toolkit copied to clipboard
The official, opinionated, batteries-included toolset for efficient Redux development
When the hook is called like this: `useGetAnalyticsSourcesQuery()` And parameters in the Open API specification look like this: ```json "parameters": [ { "name": "sort", "in": "query", "description": "Available sorts are...
Example OpenAPI schema: ```json { "openapi": "3.0.0", "info": { "title": "Example" }, "paths": { "/Foo/{name}": { "delete": { "tags": [ "Foo" ], "operationId": "deleteFoo", "parameters": [], "requestBody": { "content": {...
This `refetchCachedPages` option allows an infinite query to NOT refetch all pages in the cache when a refetch happens. By default it is `true` and uses the existing behavior. This...
Context is in https://github.com/reduxjs/redux-toolkit/issues/5014
Hey folks, Opening as a duplicate of https://github.com/reduxjs/redux-toolkit/issues/1806 since I can't comment on that thread. It's indeed a small type issue, and I am opening it just because of the...
I've wrote some benchmarks trying to understand how Immer influences the redux performance and got some very strange results: - the worst case is RTK slower than vanilla Redux by...
for example ```typescript // http GET /admin/post.json // response json: {"post": {"id": 123, "title": "the post"}} type Post = { id: number; title: string; } type PostResponse = { post:...
Currently model is not generated if it's not used by generated endpoints even if model is defined in openapi spec. In some cases it's very helpful to allow including such...
Improves consistency with `create.asyncThunk`, accepting the same object of reducers. ```ts const postSlice = createSlice({ initialState: postAdapter.getInitialState(), reducers: (create) => ({ deletePost: create.asyncThunk((id: number) => api.deletePost(id), { fulfilled(state, action) {...
Hey, not much experience with OSS here, so not sure if this is the right avenue to raise this. This is a minor documentation issue but still quite confusing ,...