getSnapshotBeforeUpdate
Added in 16.3
Executed right before rendered output is committed to the DOM. Any value returned by this will be passed into componentDidUpdate().
This is useful to capture information from the DOM i.e. scroll position.
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext