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
Here, onWillUpdateProps is executed and mutates the state, so the component should render, but because there is already a render coming from the parent component, no new render is actually scheduled. When the parent component restores the state to its previous value, the props are no longer different from the commited props and the render from the parent is canceled, and the rendering corresponding to the state mutation is lost in the ether.
make it so that the render coming from the child won't schedule a rendering if one is already scheduled but not completed (ie no bdom), but doesn't account for the fact that this rendering may be canceled by the parent
The text was updated successfully, but these errors were encountered:
Playground
Here, onWillUpdateProps is executed and mutates the state, so the component should render, but because there is already a render coming from the parent component, no new render is actually scheduled. When the parent component restores the state to its previous value, the props are no longer different from the commited props and the render from the parent is canceled, and the rendering corresponding to the state mutation is lost in the ether.
in
ComponentNode.prototype.render
, the linesmake it so that the render coming from the child won't schedule a rendering if one is already scheduled but not completed (ie no bdom), but doesn't account for the fact that this rendering may be canceled by the parent
The text was updated successfully, but these errors were encountered: