We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would be nice to have a hook that is called before the DOM is patched on component re-render.
This is especially useful when dealing with scrollbar position.
The text was updated successfully, but these errors were encountered:
getSnapshotBeforeUpdate
beforeUpdate
I think something like this should be good enough: 5635d45
Sorry, something went wrong.
@alexkuhn could you elaborate a little bit on this? Your use case is to save a scroll position before an update?
Indeed, beforeUpdate can be used to save the scroll position, so that it can be re-computed in componentDidUpdate.
componentDidUpdate
closed. The method is now called willPatch.
No branches or pull requests
Would be nice to have a hook that is called before the DOM is patched on component re-render.
This is especially useful when dealing with scrollbar position.
The text was updated successfully, but these errors were encountered: