feat: Add toggle to restore scroll position for same locations
Currently, the scroll restoration only gets restored when the history navigation (either backwards or forwards) is used. In my case, i want the scroll restoration to be restored when a link is clicked on the page that leads to the same location as well.
This PR adds a prop called restoreSameLocation to the RouterScrollProvider. false by default, it will enable this behavior if it is explicitly set.
Tests and documentation has been added as well. Let me know if anything is missing
@satazor anything missing from this?
fyi, i have deployed this fork to tobilen-next-router-scroll for testing purposes
@tiagodinis whats the status on this? can you give an update?
:(