Why we don't delete fetcher data when fetcher key change? #11832
CurryYangxx
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am reading the source code. In
useFetcher
hook, we have some clean up logic. Every time the fetcher key change, we will delete the fetcher from router state. But the fetcher data is retained in fetcherData.I want to ask why we don't delete the data from fetcher data?
react-router/packages/react-router-dom/index.tsx
Line 1711 in 0f2b167
react-router/packages/router/router.ts
Line 2903 in 0f2b167
Beta Was this translation helpful? Give feedback.
All reactions