We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b505c7f commit 374eca7Copy full SHA for 374eca7
1 file changed
codegen/lib/connect.ts
@@ -41,10 +41,11 @@ export const connect = (
41
setRouteLayoutContext(file, namespace, blueprint)
42
43
const parentPath = namespace.parentPath ?? ''
44
+ routeIndexes[parentPath] ??= new Set()
45
routeIndexes[parentPath]?.add(`${kebabCase(namespace.name)}.js`)
46
routeIndexes[parentPath]?.add(`${kebabCase(namespace.name)}/index.js`)
47
- const pathParts = parentPath.split('/')
48
+ const pathParts = namespace.path.split('/')
49
while (pathParts.length > 1) {
50
const name = pathParts.pop()
51
if (name == null) throw new Error('Unexpected null')
0 commit comments