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

In our company, a dispute arose on the topic of how and where it is better to store and reuse data. Opinions were divided. Here I will give an example....

Hello 👋 Documentation for [useLazyQuery](https://redux-toolkit.js.org/rtk-query/api/created-api/hooks#uselazyquery) says about one of the feature: `'Subscribes' the component to keep cached data in the store, and 'unsubscribes' when the component unmounts` But there is...

Hello! So, I'm using this approach for server side prefetching data: https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering#server-side-rendering-elsewhere ```javascript const createApi = buildCreateApi( coreModule(), reactHooksModule({ unstable__sideEffectsInRender: true }) ) .... store.dispatch(api.endpoints.getSomethingById.initiate(1)) await Promise.all( store.dispatch(api.util.getRunningQueriesThunk()) ) preloadedState...

bug
RTK-Query

I have implemented the reauthorization process with RTK Query following the docs: This is api.ts a single createApi instance in the app: ```javascript import { createApi } from '@reduxjs/toolkit/query/react'; import...

question
docs
rtk-query

I noticed myself and a few other people getting an error `The inferred type of X cannot be named without a reference to '../../node_modules/@reduxjs/toolkit/dist/query/react/buildHooks'. This is likely not portable. A...

bug
rtk-query
typescript

import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react"; export const api = createApi({ baseQuery: fetchBaseQuery({ baseUrl: process.env.REACT_APP_BASE_URL }), reducerPath: "adminApi", tagTypes: ["Mankind"], endpoints: (build) => ({ getUser: build.query({ query: (id) =>...

I'm generating RTK slices from OpenAPI spec (config below), and everything appears to work fine in development mode where Vite 5 is used, including hooks. But, building for production via...

I am trying to run `@rtk-query/codegen-openapi` in my repository. Providing `openapi-config.ts` as TS file. Ends up with `Encountered a TypeScript configfile, but neither esbuild-runner nor ts-node are installed`. Both dependencies...

Some issues (s. #3814) have been fixed in upstream library `oazapfts` so this is an attempt to update it to the latest version. The major updates that this update has...

A similar issue with "invalidate tags" was fixed in https://github.com/reduxjs/redux-toolkit/pull/3116 1. If request Q has started 2. Mutation M started and finished, there should be an pessimistic update of the...

rtk-query