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

```ts const loaderSlice = createSlice({ name: "loader", initialState: {} as Partial, creators: { loader: loaderCreator }, reducers: (create) => ({ addLoader: create.loader({}), }), }); ```

> Related to https://github.com/microsoft/TypeScript/issues/58743 It is not working if I try to export reducers/slices from a package. Is this an actual TS issue? Here's a possible [reproduction](https://github.com/ryuujo1573/rtk-ts2742-demo) ``` src/logic/client/user.ts:11:7 -...

Hi all, Currently, there is no way to specify that query arguments should be encoded when generating OpenAPI code using rtk query codegen. This can be a problem if you...

### Discussed in https://github.com/reduxjs/redux-toolkit/discussions/3638 Originally posted by **01-binary** August 4, 2023 When you have pages a and b, you use the same useSomeQuery on pages a and b. not to...

bug
rtk-query

Hi Team I just migrated to version 2.2.5 from version 2.2.3 and found that all my createDraftSafeSelector are throwing the above error, any idea ?

We are building an RTK-powered Redux store and encountered an issue with accessing `api.util.updateQueryData` generated by `createApi` inside an endpoint during API initialization. The manual suggests using the following approach:...

rtk-query

We have some crashes reported in our app with the message "_Cannot refetch a query that has not been started yet._". We see the crashed in Firebase Crashlytics. I could...

rtk-query

Maybe it's worth coming up with our own set of lint rules (no `x => x` selectors?)

Using toolkit for server side entity management. Trying to create a selector, hover over selector function and it’s typed as “any”. Hovering over slice.selectors gives types w/ selector names adding...

## Feature Request Looking for a feature that will prefix the injectEndpoint urls with added context similar to how baseUrl prefixes every URL. The example would look like this ###...

enhancement
rtk-query