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

Custom props compatibility with declarative Routes #58

Open
aaroncarricondo opened this issue Jun 16, 2022 · 0 comments
Open

Custom props compatibility with declarative Routes #58

aaroncarricondo opened this issue Jun 16, 2022 · 0 comments
Labels

Comments

@aaroncarricondo
Copy link

aaroncarricondo commented Jun 16, 2022

Hi, this solution worked for me for generating the routes with breadcrumbs, but I'm not able to pass custom props.

Type '{ path: string; breadcrumb: any; element: Element; props: any; }' is not assignable to type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | (IndexRouteProps & BreadCrumb))'.
  Property 'props' does not exist on type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | (IndexRouteProps & BreadCrumb))'.

However, when passing custom props using the object definition it works fine.

Originally posted by @aaroni34 in #46 (comment)

@icd2k3 icd2k3 added the types label Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants