Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(router): Adjust example for scrollPositionRestoration (#46201)
This makes a small update to the example so that it shows a use-case that's not already covered by the 'enabled' option. The existing example would get identical behavior to `scrollPositionRestoration: 'enabled'` with `anchorScrolling: 'enabled'`. The updated example shows a use-case for when custom scrolling _would_ be needed. For example, when data is fetched because it is not available immediately or through a resolver. This is one of the cases described in #24547 This update is sufficient to address all of the documentation problems noted in the aforementioned issue. Another fix should be made to address the problem that scroll restoration needs to be delayed until after CD has run so the update block of the activated component's template is run. PR Close #46201
- Loading branch information