Skip to content

Commit

Permalink
type(@kkt/react-ssr-enhanced):修复类型问题
Browse files Browse the repository at this point in the history
  • Loading branch information
SunLxy committed Apr 8, 2022
1 parent c1d5e21 commit f39b2a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-ssr-enhanced/src/ensureReady.ts
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down

0 comments on commit f39b2a1

Please sign in to comment.