From f39b2a1a81a8b4d8520819b2a2804c574a71e3ce Mon Sep 17 00:00:00 2001 From: SunLxy <1011771396@qq.com> Date: Fri, 8 Apr 2022 10:12:00 +0800 Subject: [PATCH] =?UTF-8?q?type(@kkt/react-ssr-enhanced):=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E7=B1=BB=E5=9E=8B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-ssr-enhanced/src/ensureReady.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-ssr-enhanced/src/ensureReady.ts b/packages/react-ssr-enhanced/src/ensureReady.ts index 0bf33d9..3a3f15d 100644 --- a/packages/react-ssr-enhanced/src/ensureReady.ts +++ b/packages/react-ssr-enhanced/src/ensureReady.ts @@ -1,7 +1,7 @@ import { matchPath } from 'react-router-dom'; import { RouteNewObject } from "./interface" -export default async function ensureReady(routes: RouteNewObject[], pathname: string) { +export default async function ensureReady(routes: RouteNewObject[], pathname?: string) { await Promise.all( routes.map((route) => {