Skip to content

Commit

Permalink
fix(ssr): getInitialProps should has history in csr (#5898)
Browse files Browse the repository at this point in the history
  • Loading branch information
Baoyx007 committed Dec 31, 2020
1 parent 9116e16 commit fceb6e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/renderer-react/src/renderRoutes/renderRoutes.tsx
Expand Up @@ -46,6 +46,7 @@ function wrapInitialPropsFetch(route: IRoute, opts: IOpts): IComponent {
const defaultCtx = {
isServer: false,
match: props?.match,
history: props?.history,
route,
...(opts.getInitialPropsCtx || {}),
...restRouteParams,
Expand Down

0 comments on commit fceb6e5

Please sign in to comment.