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
add different keyed app route elements #2636
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
4 Ignored Deployments
|
f354c50
to
0290a11
Compare
"layout" => { | ||
layout = Some(file); | ||
"layout" | "error" | "loading" | "template" | "not-found" | "head" => { | ||
files.insert(name.to_string(), file); |
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.
Could we have a FileType
enum with TryFrom<String>
/Into<String>
impls instead?
files
could either be a HashMap<FileType, file>
or a FileTypeMap
which has specific fields for layout
, error
, etc. and an Iterator<Item = (FileType, File)>
impl. I think going for the more specific FileTypeMap
is better here.
Benchmark for c4e66b9Click to view benchmark
|
dfa1138
to
e567b60
Compare
Benchmark for 89e81bcClick to view benchmark
|
* add different keyed app route elements * update for latest next.js canary version * fix header name * setup next.js version in benchmark
* add different keyed app route elements * update for latest next.js canary version * fix header name * setup next.js version in benchmark
This adds the missing
error
loading
template
not-found
andhead
next tolayout
andpage
files in app dirupdates app renderer code to latest next.js updates