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
React v16.3.0 introduced new lifecycle method called getSnapshotBeforeUpdate.
the method isn't supported by ShallowRenderer so we have to add support the method on enzyme if needed.
The method is called at the same timing with componentWillUpdate so we might need some hacks ShallowRenderer internals.
In addition to that, the arguments of componentDidUpdate have been changed, which accepts snapshot as the 3rd argument.
Current behavior
React v16.3.0 introduced new lifecycle method called
getSnapshotBeforeUpdate
.the method isn't supported by ShallowRenderer so we have to add support the method on enzyme if needed.
The method is called at the same timing with
componentWillUpdate
so we might need some hacks ShallowRenderer internals.In addition to that, the arguments of
componentDidUpdate
have been changed, which acceptssnapshot
as the 3rd argument.https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html
Should enzyme support this method?
If so, I'd like to work on based on #1192
Expected behavior
Your environment
API
Version
Adapter
The text was updated successfully, but these errors were encountered: