Commit ce59a830 authored by isstuev's avatar isstuev

shallow route change on the chart page

parent 257e5e20
...@@ -110,7 +110,10 @@ const Chart = () => { ...@@ -110,7 +110,10 @@ const Chart = () => {
router.push({ router.push({
pathname: router.pathname, pathname: router.pathname,
query: { ...router.query, resolution }, query: { ...router.query, resolution },
}); },
undefined,
{ shallow: true },
);
}, [ setResolution, router ]); }, [ setResolution, router ]);
const handleReset = React.useCallback(() => { const handleReset = React.useCallback(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment