Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve scroll behavior on route change #264
Currently this is handled in an ad hoc way. When the Frontend Container receives new props, it checks to see if the location has changed. If it has, the container scrolls the window to the top. This behavior needs to be made more nuanced. For example, if the route stays and params change, we likely do not want to scroll. We may want to delegate the scroll decision to children containers. Furthermore, rather than implementing this in the Frontend Container, it should be implemented in a router decorator.
This is a current problem for resource collection filters, which change param and cause an awkward scroll.