Skip to content

docs: fix duplicate "to" typos#7370

Open
dfedoryshchev wants to merge 1 commit intoTanStack:mainfrom
dfedoryshchev:chore/fix-duplicate-to-typos-in-docs-and-test
Open

docs: fix duplicate "to" typos#7370
dfedoryshchev wants to merge 1 commit intoTanStack:mainfrom
dfedoryshchev:chore/fix-duplicate-to-typos-in-docs-and-test

Conversation

@dfedoryshchev
Copy link
Copy Markdown
Contributor

@dfedoryshchev dfedoryshchev commented May 8, 2026

Three duplicate-word / missing-article typos:

  • docs/router/api/router/NotFoundErrorType.md:32 ("passed into to" -> "passed into")
  • packages/react-router/tests/useNavigate.test.tsx:2331 button label ("Navigate to to ." -> "Navigate to .")
  • _artifacts/skill_spec.md:70 table cell ("into to string" -> "into a string")

Summary by CodeRabbit

  • Documentation
    • Fixed wording and clarity in router API and related docs so error handling and parameter descriptions read correctly.
  • Tests
    • Corrected a test button label to remove a duplicated word for clearer test output and diagnostics.

Review Change Stack

@github-actions github-actions Bot added documentation Everything documentation related package: react-router labels May 8, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 8, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 432ecbe4-ee73-4992-847a-488934efdb02

📥 Commits

Reviewing files that changed from the base of the PR and between 45664f6 and c7cf08a.

📒 Files selected for processing (3)
  • _artifacts/skill_spec.md
  • docs/router/api/router/NotFoundErrorType.md
  • packages/react-router/tests/useNavigate.test.tsx
✅ Files skipped from review due to trivial changes (3)
  • docs/router/api/router/NotFoundErrorType.md
  • _artifacts/skill_spec.md
  • packages/react-router/tests/useNavigate.test.tsx

📝 Walkthrough

Walkthrough

This PR corrects three simple typos across documentation and a test: fixing wording in a skill spec, correcting NotFoundError.data docs, and removing a duplicated word in a test button label.

Changes

Typo and Wording Corrections

Layer / File(s) Summary
Skill spec wording
_artifacts/skill_spec.md
Corrected “Interpolating path params into to string” → “Interpolating path params into a to string”.
API documentation wording
docs/router/api/router/NotFoundErrorType.md
Reworded NotFoundError.data doc to state the custom data is passed into notFoundComponent when handling the not-found error.
Test label correction
packages/react-router/tests/useNavigate.test.tsx
Removed duplicated word in rendered button text: "Navigate to to . with param:bar""Navigate to . with param:bar".

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A rabbit hops through lines of prose,
Nibbling doubles where error grows,
"to to" trimmed and docs made bright,
Small fixes done — the text reads right. 🐇✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main focus of the changeset: fixing duplicate 'to' typos across documentation and test files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented May 8, 2026

View your CI Pipeline Execution ↗ for commit c7cf08a

Command Status Duration Result
nx affected --targets=test:eslint,test:unit,tes... ✅ Succeeded 2m View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 2s View ↗

☁️ Nx Cloud last updated this comment at 2026-05-09 09:10:59 UTC

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 8, 2026

More templates

@tanstack/arktype-adapter

npm i https://pkg.pr.new/@tanstack/arktype-adapter@7370

@tanstack/eslint-plugin-router

npm i https://pkg.pr.new/@tanstack/eslint-plugin-router@7370

@tanstack/eslint-plugin-start

npm i https://pkg.pr.new/@tanstack/eslint-plugin-start@7370

@tanstack/history

npm i https://pkg.pr.new/@tanstack/history@7370

@tanstack/nitro-v2-vite-plugin

npm i https://pkg.pr.new/@tanstack/nitro-v2-vite-plugin@7370

@tanstack/react-router

npm i https://pkg.pr.new/@tanstack/react-router@7370

@tanstack/react-router-devtools

npm i https://pkg.pr.new/@tanstack/react-router-devtools@7370

@tanstack/react-router-ssr-query

npm i https://pkg.pr.new/@tanstack/react-router-ssr-query@7370

@tanstack/react-start

npm i https://pkg.pr.new/@tanstack/react-start@7370

@tanstack/react-start-client

npm i https://pkg.pr.new/@tanstack/react-start-client@7370

@tanstack/react-start-rsc

npm i https://pkg.pr.new/@tanstack/react-start-rsc@7370

@tanstack/react-start-server

npm i https://pkg.pr.new/@tanstack/react-start-server@7370

@tanstack/router-cli

npm i https://pkg.pr.new/@tanstack/router-cli@7370

@tanstack/router-core

npm i https://pkg.pr.new/@tanstack/router-core@7370

@tanstack/router-devtools

npm i https://pkg.pr.new/@tanstack/router-devtools@7370

@tanstack/router-devtools-core

npm i https://pkg.pr.new/@tanstack/router-devtools-core@7370

@tanstack/router-generator

npm i https://pkg.pr.new/@tanstack/router-generator@7370

@tanstack/router-plugin

npm i https://pkg.pr.new/@tanstack/router-plugin@7370

@tanstack/router-ssr-query-core

npm i https://pkg.pr.new/@tanstack/router-ssr-query-core@7370

@tanstack/router-utils

npm i https://pkg.pr.new/@tanstack/router-utils@7370

@tanstack/router-vite-plugin

npm i https://pkg.pr.new/@tanstack/router-vite-plugin@7370

@tanstack/solid-router

npm i https://pkg.pr.new/@tanstack/solid-router@7370

@tanstack/solid-router-devtools

npm i https://pkg.pr.new/@tanstack/solid-router-devtools@7370

@tanstack/solid-router-ssr-query

npm i https://pkg.pr.new/@tanstack/solid-router-ssr-query@7370

@tanstack/solid-start

npm i https://pkg.pr.new/@tanstack/solid-start@7370

@tanstack/solid-start-client

npm i https://pkg.pr.new/@tanstack/solid-start-client@7370

@tanstack/solid-start-server

npm i https://pkg.pr.new/@tanstack/solid-start-server@7370

@tanstack/start-client-core

npm i https://pkg.pr.new/@tanstack/start-client-core@7370

@tanstack/start-fn-stubs

npm i https://pkg.pr.new/@tanstack/start-fn-stubs@7370

@tanstack/start-plugin-core

npm i https://pkg.pr.new/@tanstack/start-plugin-core@7370

@tanstack/start-server-core

npm i https://pkg.pr.new/@tanstack/start-server-core@7370

@tanstack/start-static-server-functions

npm i https://pkg.pr.new/@tanstack/start-static-server-functions@7370

@tanstack/start-storage-context

npm i https://pkg.pr.new/@tanstack/start-storage-context@7370

@tanstack/valibot-adapter

npm i https://pkg.pr.new/@tanstack/valibot-adapter@7370

@tanstack/virtual-file-routes

npm i https://pkg.pr.new/@tanstack/virtual-file-routes@7370

@tanstack/vue-router

npm i https://pkg.pr.new/@tanstack/vue-router@7370

@tanstack/vue-router-devtools

npm i https://pkg.pr.new/@tanstack/vue-router-devtools@7370

@tanstack/vue-router-ssr-query

npm i https://pkg.pr.new/@tanstack/vue-router-ssr-query@7370

@tanstack/vue-start

npm i https://pkg.pr.new/@tanstack/vue-start@7370

@tanstack/vue-start-client

npm i https://pkg.pr.new/@tanstack/vue-start-client@7370

@tanstack/vue-start-server

npm i https://pkg.pr.new/@tanstack/vue-start-server@7370

@tanstack/zod-adapter

npm i https://pkg.pr.new/@tanstack/zod-adapter@7370

commit: c7cf08a

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Bundle Size Benchmarks

  • Commit: 4eed408f127b
  • Measured at: 2026-05-09T09:09:57.610Z
  • Baseline source: history:35e88f04996d
  • Dashboard: bundle-size history
Scenario Current (gzip) Delta vs baseline Initial gzip Raw Brotli Trend
react-router.minimal 87.29 KiB +139 B (+0.16%) 87.15 KiB 274.07 KiB 75.81 KiB ▁▁▁▁▁▁▁▁▁▁▁█
react-router.full 90.82 KiB +141 B (+0.15%) 90.68 KiB 285.58 KiB 78.82 KiB ▁▁▁▁▁▁▁▁▁▁▁█
solid-router.minimal 35.51 KiB +126 B (+0.35%) 35.38 KiB 106.36 KiB 31.91 KiB ▁▁▁▁▁▁▁▁▁▁▁█
solid-router.full 40.23 KiB +127 B (+0.31%) 40.10 KiB 120.58 KiB 36.14 KiB ▁▁▁▁▁▁▁▁▁▁▁█
vue-router.minimal 53.28 KiB +131 B (+0.24%) 53.15 KiB 151.51 KiB 47.83 KiB ▁▁▁▁▁▁▁▁▁▁▁█
vue-router.full 58.41 KiB +133 B (+0.22%) 58.28 KiB 167.68 KiB 52.30 KiB ▁▁▁▁▁▁▁▁▁▁▁█
react-start.minimal 101.97 KiB +141 B (+0.14%) 101.84 KiB 322.51 KiB 88.13 KiB ▁▁▁▁▁▁▁▁▁▁▃█
react-start.full 105.41 KiB +140 B (+0.13%) 105.27 KiB 332.84 KiB 91.10 KiB ▁▁▁▁▁▁▁▁▁▁▄█
react-start.rsbuild.minimal 99.60 KiB +174 B (+0.17%) 99.43 KiB 316.97 KiB 85.65 KiB ▁▁▁▁▁▁▁▁▁▁▄█
react-start.rsbuild.full 102.89 KiB +174 B (+0.17%) 102.72 KiB 327.41 KiB 88.45 KiB ▁▁▁▁▁▁▁▁▁▁▃█
solid-start.minimal 49.61 KiB +131 B (+0.26%) 49.48 KiB 152.48 KiB 43.79 KiB ▁▁▁▁▁▁▁▁▁▁▄█
solid-start.full 55.40 KiB +133 B (+0.24%) 55.27 KiB 169.39 KiB 48.70 KiB ▁▁▁▁▁▁▁▁▁▁▄█

Current gzip tracks all emitted client JS chunks. Initial gzip tracks only the entry/import graph. Trend sparkline is historical current gzip ending with this PR measurement; lower is better.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented May 8, 2026

Merging this PR will not alter performance

✅ 5 untouched benchmarks
⏩ 1 skipped benchmark1


Comparing dfedoryshchev:chore/fix-duplicate-to-typos-in-docs-and-test (c7cf08a) with main (a04d5e4)2

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports.

  2. No successful run was found on main (4eed408) during the generation of this report, so a04d5e4 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Comment thread _artifacts/skill_spec.md

| # | Mistake | Priority | Source | Cross-skill? |
| --- | --------------------------------------------- | -------- | ----------------------------- | ------------ |
| 1 | Interpolating path params into to string | CRITICAL | docs/guide/navigation | navigation |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i think this is the to= param here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks!

@dfedoryshchev dfedoryshchev force-pushed the chore/fix-duplicate-to-typos-in-docs-and-test branch from 45664f6 to c7cf08a Compare May 9, 2026 09:07
@dfedoryshchev
Copy link
Copy Markdown
Contributor Author

Good catch, I fixed & force-pushed an update, please check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Everything documentation related package: react-router

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants