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;
|
||||
|
||||
router.replace({
|
||||
router.replace(
|
||||
{
|
||||
pathname: router.pathname,
|
||||
query,
|
||||
});
|
||||
},
|
||||
undefined,
|
||||
{ shallow: true }
|
||||
);
|
||||
};
|
||||
|
||||
useNoInitialEffect(updateRoute, [numDisplay]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user