feat: shallow: true
on router.replace
This commit is contained in:
parent
d921885f1b
commit
bb846068f3
|
@ -164,10 +164,14 @@ const CommonDisplay: React.FC<Props> = ({
|
||||||
|
|
||||||
if (numDisplay !== defaultNumDisplay) query["numDisplay"] = numDisplay;
|
if (numDisplay !== defaultNumDisplay) query["numDisplay"] = numDisplay;
|
||||||
|
|
||||||
router.replace({
|
router.replace(
|
||||||
|
{
|
||||||
pathname: router.pathname,
|
pathname: router.pathname,
|
||||||
query,
|
query,
|
||||||
});
|
},
|
||||||
|
undefined,
|
||||||
|
{ shallow: true }
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
useNoInitialEffect(updateRoute, [numDisplay]);
|
useNoInitialEffect(updateRoute, [numDisplay]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user