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

Instead of having to provide `serializeError` to the options of every `createAsyncThunk` call it would be nice to be able to provide your own `serializeError` default implementation for all thunks....

Hey 👋 I'm trying to figure out what slows our VSCode intellisense (TS-backed code auto-complete) down and may have found the main cause. Not 100% sure it's RTK Query (`createApi`)...

bug
rtk-query
typescript
performance

Hi, I'm implementing pagination with RTK Query (1.9.0) but dunno why if, at the end of the page, I refetch using the next page, the query is executed without the...

bug
rtk-query

Per https://github.com/reduxjs/redux/pull/4706 , having that `RootState` type exported makes it possible for an editor to accidentally import it instead of an application's self-defined `RootState` type.

It looks like when you specify and endpoint-specific `serializeQueryArgs`, it's possible for `queryArgs` to equal `skipToken` This is unexpected since it's not reflected in the typescript type. Either the typescript...

bug
rtk-query

We have the following code: ```ts const [mutateSomething, { isLoading }] = api.useMutateSomethingMutation(); [...] return ( { mutateSomething(someArg); }} /> ); ``` Understandably, we're getting a [@typescript-eslint/no-floating-promises](https://typescript-eslint.io/rules/no-floating-promises) error. Based on...

When using useQuery, can we avoid [dispatch calls here](https://github.com/reduxjs/redux-toolkit/blob/af3e75bb9e6a51e13603d2a5684ef3ba1da07e3b/packages/toolkit/src/query/react/buildHooks.ts#L1628) by passing in skipToken? The current implementation causes performance issues when multiple components call useQuery simultaneously, resulting in too many dispatches....

https://github.com/reduxjs/redux-toolkit/discussions/2797#discussioncomment-4396073 I prefer RTK. However, I would also like to use Suspense. Will Suspense be supported in RTK 2.0? I couldn't find any issues etc. that mention it.

RTK-Query

See https://github.com/oazapfts/oazapfts/pull/707

The ability to use infinite queries with a lazy hook just like normal lazy queries. `useLazyGetPokemonInfiniteQuery`. ### Use case The ability to get the data from multiple different arguments. Currently...