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
While a template is being rendered, if Owl finds a new child component, it will create it.
<div>
<C />
</div>
Now, if later (but before animation frame) the parent component is re-rendered, Owl will create a new RootFiber. To do this, it will check for the current rendering, and cancel all the current fibers. This will in turn destroy the new instance of C, because C has not been mounted yet.
This makes sense usually, because the sub component has been willStarted, and we don't want to execute onWillStart twice. However, in our case, C has no props. So, it would make sense to keep the same instance in this case (same applies for components with equivalent props).
The text was updated successfully, but these errors were encountered:
While a template is being rendered, if Owl finds a new child component, it will create it.
Now, if later (but before animation frame) the parent component is re-rendered, Owl will create a new RootFiber. To do this, it will check for the current rendering, and cancel all the current fibers. This will in turn destroy the new instance of C, because
C
has not been mounted yet.This makes sense usually, because the sub component has been willStarted, and we don't want to execute onWillStart twice. However, in our case,
C
has no props. So, it would make sense to keep the same instance in this case (same applies for components with equivalent props).The text was updated successfully, but these errors were encountered: