Animator unmount children on flow exited
romelperez opened this issue · comments
A dynamic component such as a modal, alert or notification component can be rendered or made visible only under certain conditions. For example, a modal component can be visible only if the respective button to open it is clicked.
The Animator
component can render its children elements only if its animator state is different exited
so this can be accomplished.
This way, the animator children HTML elements are rendered only when visible, if the animations hide its elements on state exited
.
- Add
Animator
componentunmountOnExited: boolean = false
prop to render itschildren
only when itsflow
is different fromexited
if enabled.