Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] IRouteComponentProps 没有routes字段的定义 #5542

Closed
acfasj opened this issue Oct 14, 2020 · 0 comments · Fixed by #6013
Closed

[Feature request] IRouteComponentProps 没有routes字段的定义 #5542

acfasj opened this issue Oct 14, 2020 · 0 comments · Fixed by #6013

Comments

@acfasj
Copy link

acfasj commented Oct 14, 2020

Background

IRouteComponentProps 没有routes字段的定义

Proposal

添加routes字段类型

Additional context

不确定这样是故意的还是漏掉了, 所以提了feature request, 参考源码 应该所有路由组件都会有的

    const newProps = {
      ...props,
      ...opts.extraProps,
      ...(opts.pageInitialProps || defaultPageInitialProps),
      route,
      routes: opts.rootRoutes,
    };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant