redux-toolkit
redux-toolkit copied to clipboard
The official, opinionated, batteries-included toolset for efficient Redux development
An issue that comes up regularly is building queries that want to pull data from other queries: #4828 #1171 to name a few These queries would need to: - be...
### Problem description When you set up your store to persist your api reducer as outlined on the website, there's a chance your persisted queries get stuck in "pending" state...
I have an api that i'm consuming with pretty long schema names in most places. I had the thought that i don't really care what the name of the request...
Getting the below error after upgrading to `v1.9.1` from `v1.8.6`. There is no issue if on `v1.8.6`. ```console [RangeError: Maximum call stack size exceeded] WARN Possible Unhandled Promise Rejection (id:...
When setting `RefetchOnMountOrargChange` prop to `true` in a query, it only works fine on the first render. If i refresh the app, then the query is stuck in the loading...
Should do `parseConfig` first before calling generateEndpoints, this might worth mentioning in docs. ```ts import { parseConfig } from '@rtk-query/codegen-openapi' for (const c of parseConfig(config)) { await generateEndpoints(c) } ```
I have an openapi spec that, when run through codegen-openapi, produces this error: ```console SyntaxError: Declaration or statement expected. (365:1) 363 | }); 364 | export type Items5 = string;...
@rtk-incubator/rtk-query-codegen-openapi allows you to set the baseQuery and the Redcucer Path as part of the generation, how do you do this with @rtk-query/codegen-openapi?
when using the rtk-query-codegen-openapi, the useLazyxxxxxx are not generated as exports. Work around is using the exported API directly and api.useLazyxxxxxxxxxxx however that brings in a different pattern when wanting...
The bug manifests when the `openapi.json` spec has a `requestBody.content` other than `application/json` (for example, `application/x-www-form-urlencoded`). The expected outcome is that the generated API should serialize the body into a...