router icon indicating copy to clipboard operation
router copied to clipboard

feat(router-generator): allow to customize `index` and `route` token

Open schiller-manuel opened this issue 1 year ago • 1 comments

schiller-manuel avatar Aug 27 '24 21:08 schiller-manuel

☁️ Nx Cloud Report

CI is running/has finished running commands for commit a81e3f4aa9cb27271ecbe1182e5dd95e822ec066. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

nx-cloud[bot] avatar Aug 27 '24 21:08 nx-cloud[bot]

Open in Stackblitz

More templates

@tanstack/history

pnpm add https://pkg.pr.new/@tanstack/history@2203
@tanstack/react-cross-context

pnpm add https://pkg.pr.new/@tanstack/react-cross-context@2203
@tanstack/react-router

pnpm add https://pkg.pr.new/@tanstack/react-router@2203
@tanstack/react-router-with-query

pnpm add https://pkg.pr.new/@tanstack/react-router-with-query@2203
@tanstack/router-arktype-adapter

pnpm add https://pkg.pr.new/@tanstack/router-arktype-adapter@2203
@tanstack/router-cli

pnpm add https://pkg.pr.new/@tanstack/router-cli@2203
@tanstack/router-devtools

pnpm add https://pkg.pr.new/@tanstack/router-devtools@2203
@tanstack/router-generator

pnpm add https://pkg.pr.new/@tanstack/router-generator@2203
@tanstack/router-plugin

pnpm add https://pkg.pr.new/@tanstack/router-plugin@2203
@tanstack/router-valibot-adapter

pnpm add https://pkg.pr.new/@tanstack/router-valibot-adapter@2203
@tanstack/router-vite-plugin

pnpm add https://pkg.pr.new/@tanstack/router-vite-plugin@2203
@tanstack/router-zod-adapter

pnpm add https://pkg.pr.new/@tanstack/router-zod-adapter@2203
@tanstack/start

pnpm add https://pkg.pr.new/@tanstack/start@2203
@tanstack/start-vite-plugin

pnpm add https://pkg.pr.new/@tanstack/start-vite-plugin@2203

commit: a81e3f4

pkg-pr-new[bot] avatar Aug 31 '24 08:08 pkg-pr-new[bot]

I need to test but I think underscore prefix does not cause an issue since index/route tokens are replaced before we parse the route name

schiller-manuel avatar Aug 31 '24 10:08 schiller-manuel

I need to test but I think underscore prefix does not cause an issue since index/route tokens are replaced before we parse the route name

Definitely something worth adding a test for since the routePath replacement currently happens after the layout route status has been determined.

SeanCassiere avatar Aug 31 '24 10:08 SeanCassiere

@arackaf

tannerlinsley avatar Aug 31 '24 17:08 tannerlinsley