Skip to content

Custom props compatibility with declarative Routes #58

@aaroncarricondo

Description

@aaroncarricondo

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions