kiliman / remix-flat-routes

Remix package to define routes using the flat-routes convention
MIT License
640 stars 22 forks source link

when using a route that has a `+` in it useRouteLoaderData seems to break #69

Closed lifeiscontent closed 10 months ago

lifeiscontent commented 10 months ago

useRouteLoaderData uses the route id to lookup the loader data, but from what I can tell this breaks the useRouteLoaderData hook

  const data = useRouteLoaderData<typeof layoutLoader>("routes/_app+/_layout");