0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
Commit graph

1,257 commits

Author SHA1 Message Date
Kamlesh Paul
be1b9e39b3
docs: typo in Server-Routes => Escaped Matching (#4741) 2025-07-22 17:12:30 +02:00
Lee
dae8833a46
docs(router): update Router.matchRoutes arguments (#4739) 2025-07-22 12:16:52 +12:00
Lukas Steinbrecher
86e0f8f286
docs(router): add guide on automatic code splitting (#4717)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-07-21 17:16:09 +12:00
Lee
e63f4e49d3
fix(router-core): change error type in ErrorComponentProps (#4691)
fixes #4686

---------

Signed-off-by: leesb971204 <leesb971204@gmail.com>
2025-07-20 07:33:04 +02:00
Tanner Linsley
f5e3a5ff94
docs: Correct optional params docs syntax (#4720)
Correct optional parameter syntax in documentation by removing
unnecessary parentheses.

---

**Open Background Agent:** 


[Web](https://www.cursor.com/agents?id=bc-e64937de-18eb-4b0c-8696-c1e1f2eb8a9d)
·
[Cursor](https://cursor.com/background-agent?bcId=bc-e64937de-18eb-4b0c-8696-c1e1f2eb8a9d)

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-07-19 15:32:02 -06:00
Tanner Linsley
12a30c5d1f
docs: Identify top 10 how-to docs, add deployment guide (#4701)
<!-- One very short sentence on the WHAT and WHY of the PR. E.g. "Remove
pathHash attribute because it is confirmed unused." or "Add DNS round
robin to improve load distribution." -->
Add a comprehensive how-to guide for deploying TanStack Router to
production and establish a multi-PR process for future documentation.

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-18 15:15:07 -06:00
Tanner Linsley
33302b6cda
docs: Create TanStack Router installation how-to (#4700)
Add new 'How-To' documentation section for React with a terse
installation guide to provide bite-sized, task-oriented instructions.

This new section aims to provide extremely concise, step-by-step
instructions for common tasks, making it easier for users and AI to
quickly find and follow specific procedures. Existing guides that
previously contained detailed installation steps now reference this new,
focused how-to guide to avoid content duplication and improve
discoverability.

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-18 13:41:21 -06:00
Tanner Linsley
3b8b2bc24a
docs: Document optional path params for i18n (#4699)
Add documentation for prefix-based internationalization (i18n) using
Optional Path Parameters.

This PR adds a comprehensive guide on implementing i18n patterns,
covering:
- Prefix-based i18n routing (e.g., `/{-$locale}/about`)
- Complex i18n patterns with multiple optional parameters
- Language navigation using function-style `params` for `Link`
components
- Advanced i18n with route groups
- SEO best practices (canonical URLs, hreflang)
- Type safety for locale validation

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-18 13:40:12 -06:00
Sean Cassiere
6ed0caf0a5
docs(router): prefixes and suffixes for path params (#4690) 2025-07-18 10:34:32 +12:00
Usman S. (Max Programming)
132bd0c6d3
docs(start): build-from-scratch guide to use customVite(React/Solid)Plugin (#4678)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-07-17 23:00:02 +12:00
Tanner Linsley
a2424c0f02
feat: optional path params (#4597)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: Indrek Ardel <indrek@ardel.eu>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-16 13:41:58 -06:00
Ahmed Abdelbaset
1746c08918
docs(start): remove todo from Server Routes guide (#4650) 2025-07-14 22:43:26 +12:00
RawToast
9fb55b8863
docs: Update tsr.config.json options link (#4638)
The link at for tsr.config.json found [in this
section](https://tanstack.com/router/latest/docs/framework/react/migrate-from-react-location#differences-between-react-location-and-tanstack-router)
points to [this page about file routing styles in the
docs](https://tanstack.com/router/latest/docs/framework/react/routing/file-based-routing#options)

That doesn't seem right, when the `tsr.config.json` options are [found
here](https://tanstack.com/router/latest/docs/api/file-based-routing)

I've followed the docs in the `tanstack.com` page and checked this link
works as expected 😌
2025-07-13 09:45:18 +02:00
James Cleveland
3e4b024a6b
docs(start): list static prerendering options (#4635) 2025-07-13 11:56:19 +12:00
James Cleveland
fe01311cbb
docs: remove somewhat incorrect statement from docs (#4636)
There's absolutely no reason not to use TanStack Start for purely static
sites - it works great, and it means that if you then want to transition
a codebase to being dynamically SSR, it requires zero work!
2025-07-12 23:57:47 +02:00
anthony2261
71939c46c6
docs: Add enableBeforeUnload option example in navigation-blocking.md (#4634)
Added a note on using the `enableBeforeUnload` option in `useBlocker` +
example in the "Component-based blocking" section.

@schiller-manuel I wasn't sure if there should be an entire section for
this or just a note with 1-2 examples in the existing sections (I did
the latter).

Also thanks for pushing me to contribute even if it's a small one :)
2025-07-12 23:38:50 +02:00
James Cleveland
5f42bc4cb6
fix: allow prerender if no pages specified (#4632)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-12 21:28:01 +02:00
Manuel Schiller
4b4562aea6
fix: don't run router.load() when hydrating only SSRed matches (#4630)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-12 01:18:27 +02:00
Manuel Schiller
6475b35057
feat: use seroval for SSR (#4600) 2025-07-11 00:25:32 +02:00
Jordan Winslow
5fd079e482
docs: replace reference to app folder with the correct src folder (#4598) 2025-07-08 19:37:15 +02:00
Dimitris Karagiannis
3705d8dd4d
docs: improve wording for LLM assistance support in installation.md (#4586) 2025-07-07 19:03:24 +02:00
Teemu Sirkiä
e0dfe30755
docs(start): ssr inheritance (#4583) 2025-07-06 21:29:26 +02:00
Youssef Benlemlih
fab63d9ee5
docs: ssr rendered on server (#4582) 2025-07-06 19:16:05 +02:00
Elliot Nash
ae2e919ebf
docs(start): update hosting docs to reflect vite migration (#4575) 2025-07-06 15:04:40 +02:00
Manuel Schiller
d728d69900
feat: ssr setting per route (#4565)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-05 14:35:14 +02:00
Daniel Power
9e35918038
docs: Change next.js wording (#4562)
Based on my reading, I think the use of `not` here was unintentional.
Feel free to close if I'm misinterpreting the intent.
2025-07-02 22:47:08 +02:00
Masum Gökyüz
d0f234d05a
docs: update import for server function in React basics guide (#4561) 2025-07-02 22:05:36 +02:00
Felipe Stanzani
ceec4f2102
feat: Add style to HeadContent (#4559)
Currently Route HeadContent don't have support to inline style tags.

After a contribution proposition made by @schiller-manuel in the Discord
Group I have decided to implement this.

I also have used this in the basic example for react-start and
solid-start and added style and style w/loader test cases to both
modules.

---------

Co-authored-by: Flo <fpellet@ensc.fr>
2025-07-02 00:28:12 +02:00
Usman S. (Max Programming)
3e1d2f40e6
docs(guide): integrate tailwind (#4549)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-01 22:47:42 +02:00
Manuel Schiller
8276c5f50b
feat: add forcePending to router.invalidate() (#4545) 2025-06-29 21:46:10 +02:00
SeanCassiere
cbb70fcdf5
docs(router): setup mirroring of SSR guide for SolidJS 2025-06-27 15:31:11 +12:00
SeanCassiere
63b92fe46f
docs(router): remove h4 tag on SSR guide 2025-06-27 15:17:19 +12:00
SeanCassiere
b1b11791c8
docs(router): fixup formatting on the SSR guide 2025-06-27 15:16:47 +12:00
Nico Lynzaad
f6ffd198d0
docs(guide) - update router ssr guides (#4527)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-27 00:21:34 +02:00
kusiewicz
f80a52fbd4
docs(start): typo in hosting guide (#4512) 2025-06-25 15:04:26 +12:00
kusiewicz
3a564098a9
docs(router): typo in file-based routing guide (#4511) 2025-06-25 15:04:04 +12:00
bloodnighttw
e605592e16
docs(start): remove SSR page link (#4505) 2025-06-24 15:11:47 +12:00
Naoya Shimizu(Shimmy)
980159ae10
refactor(history): use TSR_key namespace in state for hash (#4356)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-06-23 14:48:54 +12:00
Dovakeidy
84f8f96b0f
docs(router): update component structure in routing guide (#4355)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-06-23 14:34:10 +12:00
Ahmed Abdelbaset
a211a4dc25
docs: fix typos and wrong paths in server-routes.md (#4461) 2025-06-22 09:03:48 +02:00
Usman S. (Max Programming)
c48b5ba457
docs: Added missing triple-slash directive for css imports (#4498) 2025-06-21 20:26:32 +02:00
Manuel Schiller
6248b69e5e
docs: remove alpha notice from nextjs migration guid 2025-06-21 11:29:44 +02:00
Richard Honor
f42b8a066b
docs: use correct syntax for createFileRoute (#4470)
Some of the documentation was missing the path parameter for
`createFileRoute`, which is required by default.

This PR adds those paths back, and tries to make it as relevant to the
surrounding context as possible.

Fixes #4372
2025-06-20 04:50:47 +02:00
Oroneki
4230b507b3
docs: Update server-routes.md (#4477)
Updating server route docs example with correct endpoint in code
example. Excluding the `"/api"` prefix.
2025-06-20 04:48:48 +02:00
Eason Wong
bc13ecb9ff
docs(examples and guide): improve and fix some bugs (#4449) 2025-06-18 22:08:12 +02:00
Rhuan Barreto
6f15922864
docs: Update head management instructions for SPA's (#4457) 2025-06-18 19:28:34 +02:00
Davide Lombardi
c941860cf7
docs: added missing middleware method chaining in context example (#4447)
Co-authored-by: Davide Lombardi <berz@Davides-MacBook-Pro-2.local>
2025-06-17 20:11:12 +02:00
Manuel Schiller
ce8573067b docs: use createFileRoute 2025-06-13 22:02:17 +02:00
Manuel Schiller
1c8a9352fe
docs: remove experimental verboseFileRoutes from docs (#4422) 2025-06-13 21:48:19 +02:00
Himanshu Kumar Dutt
ee647d8f99
fix broken link in migrate-from-next-js.md (#4415) 2025-06-13 19:46:54 +02:00