Best practice for route alias?
We have two routes that show the exact same content but their paths will differ, e.g.
Is there any best practice to have minimal boilerplate to make this happen? Right now I've defined a
I still have to define the
Is there any better way to achieve this? Could I get type checking on my
/playlists/$playlistId/library/$playlistIdIs there any best practice to have minimal boilerplate to make this happen? Right now I've defined a
PlaylistView component in routes/-shared/PlaylistView.tsx which also exports a re-usable "route config" object for the loader. I still have to define the
component: option for each route since I'm referencing the Route.useLoaderData() and the actual route instance differs for the PlaylistViewIs there any better way to achieve this? Could I get type checking on my
routeConfig? I couldn't immediately find any type to use here, e.g. satisfies RouteConfig