Skip to content

Commit

Permalink
shallow route change on the chart page
Browse files Browse the repository at this point in the history
  • Loading branch information
isstuev committed Oct 3, 2024
1 parent e69ae76 commit a9d18fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/pages/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ const Chart = () => {
router.push({
pathname: router.pathname,
query: { ...router.query, resolution },
});
},
undefined,
{ shallow: true },
);
}, [ setResolution, router ]);

const handleReset = React.useCallback(() => {
Expand Down

0 comments on commit a9d18fb

Please sign in to comment.