use-react-router-breadcrumbs icon indicating copy to clipboard operation
use-react-router-breadcrumbs copied to clipboard

Custom props compatibility with declarative Routes

Open aaroncarricondo opened this issue 2 years ago • 0 comments

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 https://github.com/icd2k3/use-react-router-breadcrumbs/issues/46#issuecomment-1148466231

aaroncarricondo avatar Jun 16 '22 08:06 aaroncarricondo