-
Notifications
You must be signed in to change notification settings - Fork 31
Conversation
size-limit report 📦
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 08ef189:
|
I'm not 100% sure this is the "most correct solution". From what I gather, this is caused by the cleanup callback being run as if the component was unmounted. But after that, the other effect does not act like the component was re-mounted. So I think a better fix would be to reset the refs in the cleanup callback in |
ad20449
to
d20b646
Compare
I agree. I think the one counterpoint though is that if someone dispatched |
@msutkowski it is a valid concern, but I think we should catch that case over in rtk-query/src/core/buildInitiate.ts Lines 125 to 127 in ef42089
|
Shrugsy reported this in Discord, and this solves it, but I haven't considered any other implications yet. Will review again later.