From c5fa086ef85b2a31e6025121745ae80dde6ad50b Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Fri, 22 Jan 2021 10:23:24 -0800 Subject: [PATCH] fix URL replace scroll behavior --- lib/routing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routing.js b/lib/routing.js index c0b3932..84b5dfb 100644 --- a/lib/routing.js +++ b/lib/routing.js @@ -185,6 +185,6 @@ export const updateRouteState = (router, state) => { pathname: router.pathname, query: mappedState, }, - { shallow: true } + { shallow: true, scroll: false } ) }