-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
refactor: render-type to use new_createPages and fix layouts for new_createPages #1000
refactor: render-type to use new_createPages and fix layouts for new_createPages #1000
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
8abf929
to
745d701
Compare
Just realized this is #1000 🎉🍻 |
b37f02c
to
0cf6fa6
Compare
pageComponent, | ||
null, | ||
mapping, |
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.
@dai-shi should query
and hash
also be sent in here?
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.
If a page is dynamic, I think it should receive query
.
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.
thanks, and hash
only exists on the client, so it is handled inside NewRouter
? is that right?
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.
so there's a bug upstream of new_createPages. I think it's upstream of defineRouter too.
This prevents the use of query here. I'll open a new PR to talk through a fix for that, but this PR seems like a fine change on its own to me
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.
#1004 will fix the query
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.
thanks. yeah, hash
is client only.
can you tweak the PR title so that it says it includes a fix? |
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.
great to fix it.
maybe this is not the right way to fix the issue, but this does change the query params to be available on the server which was missing before. needs to come after #1000 this PR should just be for 13a3178 once 1000 is merged --------- Co-authored-by: Tyler <26290074+thegitduck@users.noreply.github.com>
moving e2e test example to use
new_createPages
this also fixes the layouts returned from
renderRoute
to re-use thepathSpec
of each route to detect nested layouts.it also fixes the page mapping issue where the props were not yet being injected and now are. This is for the slugs of the route.