Skip to content

Commit

Permalink
always keep pageProps as valid object
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Sep 12, 2022
1 parent 2bd3435 commit af08d69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/next/shared/lib/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2068,6 +2068,7 @@ export default class Router implements BaseRouter {
).catch(() => {})
}

props.pageProps = Object.assign({}, props.pageProps)
routeInfo.props = props
routeInfo.route = route
routeInfo.query = query
Expand Down

0 comments on commit af08d69

Please sign in to comment.