Use shallow routing for website details.

This commit is contained in:
Mike Cao committed 2022-11-02 08:57:52 -07:00
1 parent cb3895e565
commit 05245ca316
3 files changed
+5 -4

No files matched your search

+2 -2
View File
@@ -17,9 +17,9 @@ export default function MenuLayout({
function handleSelect(url) {
if (replace) {
router.replace(url);
router.replace(url, undefined, { shallow: true });
} else {
router.push(url);
router.push(url, undefined, { shallow: true });
}
}