Skip to content

perf(react-router): improve location building performance#2516

Merged
schiller-manuel merged 1 commit intomainfrom
perf-link
Oct 12, 2024
Merged

perf(react-router): improve location building performance#2516
schiller-manuel merged 1 commit intomainfrom
perf-link

Conversation

@schiller-manuel
Copy link
Copy Markdown
Contributor

@schiller-manuel schiller-manuel commented Oct 12, 2024

  • refactor matchRoutes by moving the actual route matching into a separate function that can be called when only the routes are needed
  • if to is available, use it for constant time route lookup

- refactor `matchRoutes` by moving the actual route matching into a separate function that can be called when only the routes are needed
- if `to` is available, use it for constant time route lookup
@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud bot commented Oct 12, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 11439ff. 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.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Oct 12, 2024

Open in Stackblitz

More templates

@tanstack/create-router

pnpm add https://pkg.pr.new/@tanstack/create-router@2516

@tanstack/react-router

pnpm add https://pkg.pr.new/@tanstack/react-router@2516

@tanstack/react-cross-context

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

@tanstack/history

pnpm add https://pkg.pr.new/@tanstack/history@2516

@tanstack/react-router-with-query

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

@tanstack/router-arktype-adapter

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

@tanstack/router-cli

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

@tanstack/router-generator

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

@tanstack/router-devtools

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

@tanstack/router-plugin

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

@tanstack/router-valibot-adapter

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

@tanstack/router-vite-plugin

pnpm add https://pkg.pr.new/@tanstack/router-vite-plugin@2516

@tanstack/router-zod-adapter

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

@tanstack/start-vite-plugin

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

@tanstack/start

pnpm add https://pkg.pr.new/@tanstack/start@2516

@tanstack/virtual-file-routes

pnpm add https://pkg.pr.new/@tanstack/virtual-file-routes@2516

@tanstack/eslint-plugin-router

pnpm add https://pkg.pr.new/@tanstack/eslint-plugin-router@2516

commit: 11439ff

@schiller-manuel schiller-manuel merged commit da102e5 into main Oct 12, 2024
@schiller-manuel schiller-manuel deleted the perf-link branch October 12, 2024 08:35
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.

1 participant