use_effect
's unmount method is not always called with dynamically rendered children
#1198
Labels
priority-0-critical
Must be resolved and released immediately.
release-patch
Warrents a patch release
type-bug
About something that isn't working
Current Situation
This issue was first discovered while trying to develop reactive-python/reactpy-django#226
I created a component that simulates a
list
of conditionally rendered children. Each child in the list contains a uniquekey
. However, theuse_effect
unmount method does not always appear to be called when the component is dismounted.Here is a minimum viable example:
You can demo this by adding a bunch of children, then removing them. If you look at terminal, you'll notice that
unmount
was only called once despite multiple children being unloaded.Proposed Actions
No response
The text was updated successfully, but these errors were encountered: