-
Notifications
You must be signed in to change notification settings - Fork 49.4k
Closed
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug
Description
React version: 16.14.0 and 18.2.0
Steps To Reproduce
I can give a demo more obvious, the demo: https://codesandbox.io/s/admiring-khayyam-3s64gq?file=/src/App.tsx
Steps To Reproduce:
- a simple demo can be found Here: https://codesandbox.io/s/admiring-khayyam-3s64gq?file=/src/App.tsx
- running GC and Take a heap snapshot
- Click 'open Modal click for test memory leak (has large input items)' and open modal
- focus any input item
- close modal
- refresh state for click 'refresh state '
- running GC and Take a heap snapshot
and after that you can found large detached input element exist
Link to code example:
https://codesandbox.io/s/admiring-khayyam-3s64gq?file=/src/App.tsx
The expected behavior
hope some one can help resolve this
Metadata
Metadata
Assignees
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug