Skip to content

Commit

Permalink
fix(cli-plugin-service): pass 'initProps' to activity component
Browse files Browse the repository at this point in the history
  • Loading branch information
front-end-captain committed Apr 29, 2021
1 parent a918d28 commit 8238bc6
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -132,7 +132,10 @@ async function serverRender(
App = (
<StaticRouter {...staticRouterProps} context={staticRouterContext}>
<Root matchedRouteList={matchedRouteList} originRouteList={originRoutes}>
<Route path={activityRoute.path} component={ActivityComponent} />
<Route
path={activityRoute.path}
render={() => <ActivityComponent {...initProps} />}
/>
</Root>
</StaticRouter>
);
Expand Down

0 comments on commit 8238bc6

Please sign in to comment.