-
Notifications
You must be signed in to change notification settings - Fork 46.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DevTools] Make sure named hooks Suspense cache is persisting between elements #21822
Comments
Update: I am seeing what looks items getting evicted from the Suspense cache unexpectedly. I added logging and verified that the elements are referentially equal between selections, but the cache is |
This is caused by Apparently it is a known limitation of the current API. I've posted about it on the WG thread: reactwg/react-18#25 (comment) |
It currently looks like the
map.get(element)
returnsundefined
even for previously-loaded elements. Are we evicting from the cache prematurely? Why?Our second level caching (inside of
parseHookNames
) is working but this is still resulting in a lot of unnecessary work.The text was updated successfully, but these errors were encountered: