Hi All.
I am building a site based on shopify hydrogen (react, remix).
SmoothScroll works correctly everywhere except where I need to reactively change the url without changing the current location on the page.
I.e. for the user everything happens unnoticeably, it can be a simple add to cart via fetch or it can be a link click on NavLink component using preventScrollReset={true} flag.
This means that no matter how high the user is on the page, he remains on it, without visible changes.
However, when using SmoothScroll, every such action means that it must animate a smooth scroll to the block of the screen the user was on.
Is there any way to disable scrolling after a reactive url change? Unless of course it's an anchor, anchors require scrolling.