I have links at the bottom of my posts to similar posts that the reader may be interested in. When they click on those links, the router sends them to the new page, but the scroll position stays at the bottom even after rendering the new post. The expected behavior is for the top of the new post to be displayed.
I’m using:
> `const onClick = (event) => {
> event.preventDefault();
> actions.router.set(post.link);
> }`
for my click events as outlined in the tiny-router documentation
Is this intentional behavior for actions.router.set? Is one of my dependencies causing unexpected behavior?