-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
From Release 2.7.0
We've restructured the state.api.provided data structure to handle reverse-mapping between tags and cache keys, which drastically improves performance in this case.
I believe this is what is breaking rehydration. I've created a codesandbox: https://codesandbox.io/p/devbox/rtk-query-persist-pending-forked-h93g47?workspaceId=ws_CAJAxLFH2LyYTzcwzts226
If you refresh the example once or twice, you'll see an error about cacheKeys not being iterable. I think I traced it back to this line:
| for (const [id, cacheKeys] of Object.entries(incomingTags)) { |
That needs to go one level deeper into the state structure unless I'm mistaken.
matinrco
Metadata
Metadata
Assignees
Labels
No labels