redux-toolkit icon indicating copy to clipboard operation
redux-toolkit copied to clipboard

The official, opinionated, batteries-included toolset for efficient Redux development

Results 422 redux-toolkit issues
Sort by recently updated
recently updated
newest added

I feel that the documentation needs to cover the following scenario. I have an array of objects that I need to send to the API. The API only allows mutating...

### Description Current implementation of [listernerApi.fork](https://redux-toolkit.js.org/api/createListenerMiddleware#child-tasks) has an **implicit** contract: ``` 1. The output forked task is scheduled **synchronously** in a microtask. 2. The output forked task will **always** run...

enhancement
Breaking Change

Currently, the return type of `transformResponse` on `enhanceEndpoints` has to match the original return type from `createApi`. This diminishes the value and ability of `enhanceEndpoints`: Often, it is preferred to...

enhancement
rtk-query

I'm using the Typescript RTK Query code gen plugin to generate some api hooks. Example: ```ts const injectedRtkApi = api.injectEndpoints({ overrideExisting: true, endpoints: (build) => ({ Notification: build.query({ query: (variables)...

bug
RTK-Query
TypeScript

Steps to reproduce: 1) declare an API with a `baseUrl` 2) add an endpoint that should query root `baseUrl` with params 3) call the endpoint Expected url: `/api/foo?bar=baz` Actual url:...

Would the project team be interested in adding first class offline support to the roadmap? Given that RTK is making api integration really simple, could there be room for some...

rtk-query

``` const someSlice = createSlice({ /* ... */ extraReducers: builder => { builder.addMatcher( isFulfilled(...someAsyncThunkArray), // ``` >export declare function isFulfilled(...asyncThunks: >AsyncThunks): (action: any) => action is FulfilledActionFromAsyncThunk; >``` I tried...

typescript

Is there any way to provide placeholder data when executing a query? For example if I have the following: ```javascript const { data } = useMyCoolQuery(); ``` I'd like `data`...

enhancement
RTK-Query

I'm currently writing tests in jest and testing-library, while using msw to mock my results as well as errors. On a browser, it catches errors fine, and returns the results...