-
-
Notifications
You must be signed in to change notification settings - Fork 797
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
[legacy-framework] Fix Routes manifest for pages with parent & child relationships (patch) #2424
Conversation
Thanks @frankiesardo! Next time please leave the PR template in place :) |
@frankiesardo you have a failing test:
Locally run |
I don't think it's a good idea to change the signature of the Route Manifest. Why would one of these paths take The better fix here would be to update the generator to emit |
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.
See comment above
@Skn0tt Yeah that seems a better approach to me 👍 |
@Skn0tt I can push a change that adds |
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.
Yes, that works @frankiesardo!
One minor thing: useParam
actually returns undefined
while generating the static site templates, because there are no parameters available at build time. So placing the !
after useParam
may confuse devs.
I think we can fix this by placing the !
where they're used as links. I'll push a commit real quick :D
I can't push to this PR for some reason. Here's the commit: f8e947e |
Yeah makes sense 👍 I've copied that and I've also covered the /new endpoints too |
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.
Thank you!!
Added @frankiesardo contributions for code |
Closes: blitz-js/legacy-framework#248