redux-toolkit
redux-toolkit copied to clipboard
The official, opinionated, batteries-included toolset for efficient Redux development
Codegen is throwing error on duplicate operationIds. In my believe most of openApi spec files generated from controller method names has duplicates in operationIds. Simple controller method names often follow...
Hello! 👋 I was reading about the [createAPI](https://github.com/reduxjs/redux-toolkit/blob/master/docs/rtk-query/api/createApi.mdx#createapi) and came across this sentence in the first paragraph. > It allows you `to define a set of endpoints describe how to...
I recently had to create this for myself when experimenting with rtk-query in a react-native project. I figured this could be useful for somebody else.
It seems that codegen ignores all other status codes in my openapi doc. Is this intended?
When using the graphqlRequestBaseQuery as the baseQuery, the only available properties on the query param of an endpoint are document and variables. How does one set a per-endpoint header then?...
RTKQ uses `createAsyncThunk` inside, and I think we use `condition` to check if a query is already in progress and we should bail out. Unfortunately, that causes a `rejected` action...
``` export const api = createApi({ reducerPath: 'api', baseQuery: fetchBaseQuery({ baseUrl: baseURL, prepareHeaders: (headers, { getState }) => { const token = (getState() as RootState).auth.token; // this block of code...
We have 2 repos, **common** contains the RTK query stuff, **app** uses the query hook exported from common.  with in the common repo, everything is working as expected However...
Hey, I added to docs example of using graphql-request but with your own client. Unfortunately I cannot create codesandbox example from the same account as the all other examples. Could...
I'm seeing a fair bit of conflicting info of how to set it up. I'm working with react native I've gone with this: ``` import { configureStore } from '@reduxjs/toolkit'...