From 87bb97c363d244a65e8612a40baad62dd58d10be Mon Sep 17 00:00:00 2001 From: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> Date: Wed, 28 Oct 2020 20:42:50 -0700 Subject: [PATCH] Updated docs for restoring scroll position Fixes #155 --- Advanced Usage.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Advanced Usage.md b/Advanced Usage.md index c29c7e6..bcf61e1 100644 --- a/Advanced Usage.md +++ b/Advanced Usage.md @@ -588,3 +588,5 @@ To enable that, set the `restoreScrollState` property to `true` in the router (i ```svelte ``` + +**Important:** In order for the scroll position to be restored, you need to trigger a page navigation using either the `use:link` action or the `push` method. Navigating using links starting with `#` (such as ``) will not allow restoring the scroll position.