redux-toolkit
redux-toolkit copied to clipboard
The official, opinionated, batteries-included toolset for efficient Redux development
I have the following when I get an item and tag it with a property e.g a string  When I update the entity and change the string from say...
see https://github.com/reduxjs/redux-toolkit/issues/3837
Hi everyone! I wanted to let you know that @fimion and me are currently working on a [Plugin System for Oazapfts](https://github.com/oazapfts/oazapfts/issues/562). We'll most likely remove most if not all semi-official...
Hey 👋 Why is it that when adding (or removing/updating/etc...) items inside an entity-adapter's state, entity-adapter will first [push into the array](https://github.com/reduxjs/redux-toolkit/blob/master/packages/toolkit/src/entities/sorted_state_adapter.ts#L133-L140), then run `.sort(sortFn)` on the entire array? Wouldn't...
I'm currently using hooks to query an API and set up a polling interval for it, like so: ```ts const { data: event, isLoading, isSuccess, isError, error, } = useGetEventQuery(eventId,...
This PR aims to introduce the InfiniteQuery to RTKQ. My current strategy is to basically follow Lenz's [suggestion](https://github.com/reduxjs/redux-toolkit/discussions/3174#discussioncomment-8387732) in the RTKQ Infinite Query thread. This PR is a starting point...
Hey, I am using openapi to genetate the api endpoints. After the file is generated, I made changes to add the tagTypes, ProvideTags, and InvalidatesTags so deal with the caching....
[CodeSandbox](https://codesandbox.io/p/sandbox/musing-bohr-zvcfri?file=%2Fsrc%2FApp.js&layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522cltfmbto200073b6kdfjmx8if%2522%252C%2522sizes%2522%253A%255B70%252C30%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522cltfmbto100033b6krivbtg99%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522cltfmbto100043b6k2385wl0h%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522cltfmbto100063b6k2om3f7pz%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522cltfmbto100033b6krivbtg99%2522%253A%257B%2522id%2522%253A%2522cltfmbto100033b6krivbtg99%2522%252C%2522tabs%2522%253A%255B%255D%257D%252C%2522cltfmbto100063b6k2om3f7pz%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522cltfmbto100053b6kdm2udamg%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522UNASSIGNED_PORT%2522%252C%2522port%2522%253A0%252C%2522path%2522%253A%2522%252F%2522%257D%255D%252C%2522id%2522%253A%2522cltfmbto100063b6k2om3f7pz%2522%252C%2522activeTabId%2522%253A%2522cltfmbto100053b6kdm2udamg%2522%257D%252C%2522cltfmbto100043b6k2385wl0h%2522%253A%257B%2522tabs%2522%253A%255B%255D%252C%2522id%2522%253A%2522cltfmbto100043b6k2385wl0h%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D ) 1. I load the sandbox, the pokemon is fetched. 2. I toggle skip (skip is true), the results will vanish. 3. I reset the API state. 4. Now...