remix-flat-routes
remix-flat-routes copied to clipboard
fix fixupIndexRoutes function args type
The type of parameter in the fixupIndexRoutes function changed from any to RouteManifest. This is because I think it is better to increase safety by specifying a specific type rather than using any in type script.
I think we can remove this function altogether. This was here because an older version of Remix was checking for index routes by looking for route id ending with '/index'. Current versions now use the index
flag from the route manifest.
I think we can remove this function altogether. This was here because an older version of Remix was checking for index routes by looking for route id ending with '/index'. Current versions now use the
index
flag from the route manifest.
Can I understand that after the PR below is merged, I can remove the function and make a new implementation that fits the new index flag from the route manager?
https://github.com/remix-run/remix/pull/3127