From b37ee2ccafdcb5468f1e75ce1c732b678ca39a75 Mon Sep 17 00:00:00 2001 From: Liu Bowen Date: Wed, 7 Apr 2021 00:12:01 +0800 Subject: [PATCH] chore: rename shallow --- packages/next/next-server/lib/router/router.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/next/next-server/lib/router/router.ts b/packages/next/next-server/lib/router/router.ts index 3cb105d134d87..7153e2d560f6f 100644 --- a/packages/next/next-server/lib/router/router.ts +++ b/packages/next/next-server/lib/router/router.ts @@ -507,7 +507,7 @@ export default class Router implements BaseRouter { _bps: BeforePopStateCallback | undefined events: MittEmitter< RouterEvent, - (url: string, routeProps: { shadow: boolean }) => void + (url: string, routeProps: { shallow: boolean }) => void > = mitt() _wrapApp: (App: AppComponent) => any isSsr: boolean @@ -526,7 +526,7 @@ export default class Router implements BaseRouter { static events: MittEmitter< RouterEvent, - (url: string, routeProps: { shadow: boolean }) => void + (url: string, routeProps: { shallow: boolean }) => void > = mitt() constructor(