I am using svelte and svelte-routing to create a website and try to scroll to the top of the page whenever a User navigates around. In other Frameworks like React window.scrollTo(0, 0) works perfectly fine. In Svelte, the following code does nothing unfortunately:

```
import { onMount } from "svelte";

onMount(() => window.scrollTo(0,0));

```

So what is the trick to make this work?