TanStackT
TanStack4mo ago
3 replies
specific-silver

Don't `resetScroll` on the same page

The default resetScroll behavior is somewhat annoying when you have buttons/links on the same page that simply change some URL state.

Is there a way to set up our router so that resetScroll's default behavior is true when going to a different page, but
false
when going to the same page (i.e. just changing URL params)?
Was this page helpful?