-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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: support route index and nested url without nested layout #6020
Conversation
冲突 |
packages/route-manifest/src/index.ts
Outdated
const nextChar = i < partialRouteId.length - 1 ? partialRouteId.charAt(i + 1) : undefined; | ||
|
||
function isNewEscapeSequence() { |
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.
函数声明尽量不要在循环体内,是不是直接变量声明就行了
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.
fixed
test case 需要覆盖新规则 |
} | ||
|
||
if (isNewEscapeSequence()) { | ||
inEscapeSequence++; |
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.
建议加个例子,说明下处理的场景
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.
done
done |
a.b.c.tsx
扁平文件名代替a/b/c.tsx
嵌套目录 来生成/a/b/c
嵌套 url。Ref: https://remix.run/docs/en/main/guides/routing#nested-urls-without-nesting-layouts