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

947 commits

Author SHA1 Message Date
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
Felix
68be739580
docs(start): use correct import source for createFileRoute in build-from-scratch guide (#4399)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-06-13 08:31:15 +12:00
Himanshu Kumar Dutt
de22e58a87
docs(start): include /api as a Server Routes example (#4375) 2025-06-12 10:38:26 +12:00
Neco
f4e86649c2
docs(start): spa-mode guide to use correct export (#4374) 2025-06-12 10:37:56 +12:00
autofix-ci[bot]
5893f41aef
ci: apply automated fixes 2025-06-11 17:42:16 +00:00
Harsh Pareek
714c8cf008
docs: Correct createFileRoute import and invocation in Build a Project from Scratch (#4385) 2025-06-11 19:41:11 +02:00
Manuel Schiller
8b5accb27c
feat: Merge alpha to main (#4365)
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com>
Co-authored-by: Iha Shin (신의하) <me@xiniha.dev>
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: MoeedDar <moeed.dar@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Saša Šijak <me@ssijak.com>
Co-authored-by: Christopher Horobin <chrishorobin@hotmail.com>
Co-authored-by: Ryan Gillie <gillie.ryan@hotmail.com>
Co-authored-by: Jaga Santagostino <jagasantagostino@gmail.com>
Co-authored-by: Birk Skyum <birk.skyum@pm.me>
Co-authored-by: Yeoh Joer <yeoh.joer@outlook.com>
Co-authored-by: Dane Grant <danecando@gmail.com>
Co-authored-by: Birk Skyum <74932975+birkskyum@users.noreply.github.com>
Co-authored-by: Luis Merino <mail@luismerino.name>
Co-authored-by: ThaumRystra <9525416+ThaumRystra@users.noreply.github.com>
Co-authored-by: Adam Hunter <arhunter@gmail.com>
Co-authored-by: Leonardo Montini <lion.48m@gmail.com>
Co-authored-by: Joel Tannas <jtannas@gmail.com>
Co-authored-by: scarf <greenscarf005@gmail.com>
Co-authored-by: Lenz Weber-Tronic <lorenz.weber-tronic@apollographql.com>
Co-authored-by: Iñaki Larramendi <30437204+ilarramendi@users.noreply.github.com>
Co-authored-by: Hiển Đào Vinh <neo.go.vn@gmail.com>
Co-authored-by: Lleyton W Morris <42259073+ViewableGravy@users.noreply.github.com>
Co-authored-by: Lleyton Morris <lmorris@nexigen.digital>
Co-authored-by: Matthew Struble <matt@vevox.io>
Co-authored-by: Matt Anderson <matt@mattdev.ca>
Co-authored-by: Chung <chungwong@users.noreply.github.com>
Co-authored-by: Maxx Coffee <josh@joshcoffee.dev>
Co-authored-by: Joshua Coffee <joshcoffee@gannett.com>
Co-authored-by: Jack Herrington <jherr@pobox.com>
Co-authored-by: Neeraj Dalal <admin@nrjdalal.com>
Co-authored-by: Thomas Marnet <thomas.marnet@gmail.com>
Co-authored-by: Vianney Carel <vcarel@users.noreply.github.com>
Co-authored-by: Vianney Carel <vianney.carel@logfuse.fr>
Co-authored-by: Diego Rincón <97266392+diegoarff@users.noreply.github.com>
Co-authored-by: Erfan Hosseini <43422324+Erfanhosseini98@users.noreply.github.com>
Co-authored-by: IderAghbal <3328396+IderAghbal@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andrew Jefferson <8148776+eastlondoner@users.noreply.github.com>
2025-06-10 23:19:32 +02:00
Erfan Hosseini
d1ed4e1c70
docs: Update preloading.md (#4310) 2025-06-03 21:09:06 +02:00
Diego Rincón
9db424fb5b
docs(router): fix path param name in "data mutation" guide (#4302) 2025-06-03 15:08:01 +12:00
Thomas Marnet
3f858cb268
fix: scroll to top selectors function (#4281) 2025-05-30 16:49:42 +02:00
Neeraj Dalal
18e24a74a5
docs(start): add project structure to next.js migration guide (#4280) 2025-05-30 23:00:45 +12:00