You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I navigate with Links from /settings to its children, then it will create a lot of detached nodes
If i navigate with Links from /settings/volume or /settings/video then it's ok
Version: Version 131.0.6778.140 (Official Build) (64-bit)
Additional context
I could also reproduce similar memory leak with react-router v6 and v7. Will create a case for them too.
So there might be a problem with React itself, but I'm not sure.
The text was updated successfully, but these errors were encountered:
faridsaid20
changed the title
Memory leak with navigation from parent link
Memory leak with navigation from parent route
Dec 23, 2024
Which project does this relate to?
Router
Describe the bug
Getting detached nodes when navigation from specific parent components
example path
/
-----/settings
----------------/settings/volume
----------------/settings/video
If I navigate with Links from /settings to its children, then it will create a lot of detached nodes
If i navigate with Links from /settings/volume or /settings/video then it's ok
Your Example Website or App
https://stackblitz.com/edit/github-txkpx7fm-jgzkk4qc?file=src%2Fapp.tsx
Steps to Reproduce the Bug or Issue
Check the Video
Expected behavior
Should not generate detached nodes...
Screenshots or Videos
memoryLeak.mp4
Platform
Additional context
I could also reproduce similar memory leak with react-router v6 and v7. Will create a case for them too.
So there might be a problem with React itself, but I'm not sure.
The text was updated successfully, but these errors were encountered: