Repository navigation
Add fetcher data layer - #10961
Add fetcher data layer#10961
Conversation
🦋 Changeset detectedLatest commit: a9c1886 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Fetcher data lives in the React layer now, and we use ref counting via register/unregister to know when to remove from fetcherData
There was a problem hiding this comment.
Fetcher data hand-off from the router to the React data layer
There was a problem hiding this comment.
I think we're OK using a ref here but I need to bang on some edge cases to be sure - all tests and such pass as-is which is reassuring. The idea is that anytime a fetcher.data needs to update - a fetcher will have changed state which will be what triggers the re-render, and we don't need useState version of fetcherData.
5a17ffe to
2c6b70a
Compare
9ca6ef8 to
d3adf5e
Compare
d3adf5e to
a9c1886
Compare
|
🤖 Hello there, We just published version Thanks! |
|
🤖 Hello there, We just published version Thanks! |
Dependent on #10960
Adds a fetcher data layer to
RouterProviderto setup the 3rd (and final) PR for this work (a future flag to change the fetcher cleanup/persistence behavior)