Closed ealmloff closed 1 year ago
It looks like drop_scope is never called in remove_component here: https://github.com/DioxusLabs/dioxus/blob/master/packages/core/src/diff.rs#L918
Good catch, yep, the "remove component node" function should just be returning the props from the scope to the vcomponent in case the vcomponent gets rendered again.
Put up #771
fixed in #771
Problem
The state create in use_state hooks in components that are created and then removed are never have there drop handler called.
Steps To Reproduce
Run:
Expected behavior
The message Dropped should be called when the program starts, not just when it is closed and the VirtualDom is dropped
Environment:
master
]core
Questionnaire