Mark Erikson
Mark Erikson
There's a couple other fixes I'm trying to get wrapped up for this release, but real life's been busy and haven't had time to work on any maintenance. _Hoping_ to...
Out in https://github.com/reduxjs/redux-toolkit/releases/tag/v2.9.0 !
Afraid this isn't enough information to understand what might be going on. Can you provide a CodeSandbox or a repo that shows this happening?
@AsuraKev : even if the requests arrive out of order, the component that's _asking_ for the data will only see the cache entry that it's _asking_ for. Same as if...
That's the baseline "values when uninitialized" definition, so `hasNextPage: false` is accurate there. We may be missing grabbing those fields in some of the TS overrides later, though.
Out in https://github.com/reduxjs/redux-toolkit/releases/tag/v2.9.0 !
@Cambrionix-Matt : what is the code sequence and timing of `resetApiState()` vs `initiate()`? Can you provide an example that repros this behavior?
If `api2.resetApiState()` is dispatched while that second request is still in progress, then yeah, it doesn't surprise me that this broke. That's not intended usage, and it's likely that the...
I'd disagree on that. The types are accurate for intended usage. adding `| undefined` here would force users to do additional checks that aren't necessary except in this specific broken...
I just shipped a change in v2.9.2 to ensure that all outstanding requests get aborted when you dispatch `resetApiState`. Does that help this situation?