redux-toolkit
redux-toolkit copied to clipboard
The official, opinionated, batteries-included toolset for efficient Redux development
This might need some yak shaving with the name and I also want to maybe take another look at how `.forTypes` is called, because like this it gets more restrictive...
I have a big list of thunks that I want to observe in order to power loading indicators in a pseudo-global way and accomplishing this with matchers. Instead of writing...
### Description When defining a `baseQuery` and providing a type for `extraOptions`, trying to use the `baseQuery` with `createApi` has a typescript error unless the `extraOptions` type is an object...
Problem ``` import { configureStore } from '@reduxjs/toolkit'; import { FLUSH, PAUSE, PERSIST, persistReducer, persistStore, PURGE, REGISTER, REHYDRATE } from 'redux-persist'; import storage from 'redux-persist/lib/storage'; const persistConfig = { key:...
They're currently in #2303 , which needs to be updated. We should release them alongside 1.9 to give folks a chance to more easily update and avoid the warnings.
> This was originally "1.8 planning", but 1.8 ended up just having the listener middleware. So, keeping the issue around for both. 1.8: - TS fixes for `configureStore` and `getDefaultMiddleware`...
I want to use this library with Reactron like below steps but not working https://github.com/infinitered/reactotron/blob/master/docs/plugin-redux.md
### Description Proof of concept of a suspense for data fetching implementation. It is based on [`useSuspendAll`](https://github.com/FaberVitale/redux-toolkit/blob/7ef04e594f8580ee4007f18b92bf4de5b0d8f692/packages/toolkit/src/query/react/suspense-utils.ts#L47), a custom hook that parallelizes suspended queries and outputs input arguments with remapped...
typing `builder.query` is easy like ``` builder.query ``` and have used it to query blockchain LCD endpoints ```ts queryA - builder.query queryB - builder.query queryC - builder.query queryD - builder.query...