Skip to content
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

feat: named view support #6

Merged
merged 13 commits into from Jun 28, 2022
Merged

feat: named view support #6

merged 13 commits into from Jun 28, 2022

Conversation

hannoeru
Copy link
Collaborator

No description provided.

src/core/treeLeafValue.ts Outdated Show resolved Hide resolved
@hannoeru hannoeru marked this pull request as ready for review June 28, 2022 14:45
@hannoeru hannoeru requested a review from posva June 28, 2022 14:47
@posva
Copy link
Owner

posva commented Jun 28, 2022

I fixed the errors on windows, you can rebase @hannoeru

Copy link
Owner

@posva posva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot! I just found a few bugs I introduced myself early on and I going to refactor a little bit the splitting of the path after merging

@@ -63,8 +63,10 @@ export function createRoutesContext(options: Required<Options>) {

function addPage(path: string) {
log('added', path)
const route = stripRouteFolder(path)
// TODO: handle top level named view HMR
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what did you mean with this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't dig into it yet, but currently named view has some bug with HMR when you change routes's filename.

@posva posva merged commit a46dcd2 into main Jun 28, 2022
@posva posva deleted the feat/named-view branch June 28, 2022 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants