-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: check index routes against route config instead of id suffix #4560
Conversation
Index routes in Remix Flat Routes do not end in `/index` so these routes were not correctly identified.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any chance we could get a test for this?
@kentcdodds Yes, I'll write a test for this. I was just trying to at least get this on the radar. In the meantime, I think I'll just update Remix Flat Routes to add the |
See Remix PR [#4560](remix-run/remix#4560)
Ok, v0.4.8 has been published. This updates the route ids for index routes to match what Remix is looking for. At least until Remix merges my PR. |
@kentcdodds BTW, I just realized I don't need a specific test for this, because ALL the existing tests pass. That means I didn't break anything. Just changed how the index route is determined. |
The benefit is to:
|
Hi. I opened a PR back in May 7 that fixed this: #3127. |
@penspinner Nice.. I didn't see that one. Cool that you have tests. BTW: it looks like there is one other place where it incorrectly checks for /index: |
@kiliman, thanks. Updated. |
I'm going to close this PR in favor of #3127. |
Index routes in Remix Flat Routes do not end in
/index
so these routes were not correctly identified.