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

5,954 commits

Author SHA1 Message Date
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
Tanner Linsley
79b2c61841 release: v1.127.6 v1.127.6 2025-07-12 19:37:51 +00: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
Tanner Linsley
dbbcd296f0 release: v1.127.5 v1.127.5 2025-07-12 19:22:40 +00:00
Juliusz Kościołek
6b55a33d69
fix: invalid path generation for params above groups routes (#4629)
Fixes #4599

# Previous behavior

```
$param
    (group)
        route.tsx
        index.tsx
```

when router-generator processes the `route.tsx` node, the `split`
variable


8df504c3a4/packages/router-generator/src/generator.ts (L1258)

will be `[ '$param', '(group)' ]`, and because the last part is a group


8df504c3a4/packages/router-generator/src/generator.ts (L1263)

the whole route will be generated as pathless, i.e.

```ts
const IndexRoute = IndexRouteImport.update({
  id: '/',
  path: '/',
  getParentRoute: () => rootRouteImport,
} as any)
const ParamgroupRouteRoute = ParamgroupRouteRouteImport.update({
  id: '/$param/(group)',
  ////////////////
  path: '/$param/', // <---- This will NOT be here without the fix
  ////////////////
  getParentRoute: () => rootRouteImport,
} as any)
const ParamgroupIndexRoute = ParamgroupIndexRouteImport.update({
  id: '/',
  path: '/',
  getParentRoute: () => ParamgroupRouteRoute,
} as any)
```

therefore the `$param` part of the path will be lost, and it won't be
included in `index.tsx`'s path resolution algorithm (in this case its
path would be `/`)

# Current behavior

When processing a route node, its path is skipped when all nodes between
it and the higher route are groups.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-12 21:14:48 +02:00
Tanner Linsley
db8ae23adc release: v1.127.4 v1.127.4 2025-07-12 00:19:16 +00:00
Onur Guvenc
bbc480aeda
fix(start-server-functions-server): add base path to the RPC URL (#4619) 2025-07-12 12:05:24 +12:00
Tanner Linsley
c1d38af5d3 release: v1.127.3 v1.127.3 2025-07-11 23:20:25 +00: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
Nico Lynzaad
8df504c3a4
consider routeFileIgnorePattern when checking routePrefixes (#4626)
This PR closes #4623 by considering routeFileIgnorePattern when checking
for routeFilePrefix

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-11 23:30:59 +02:00
Tanner Linsley
a4ae8bd735 release: v1.127.2 v1.127.2 2025-07-11 21:28:46 +00:00
kusiewicz
418ab856cc
fix: remove unused jsesc (#4628) 2025-07-11 23:21:08 +02:00
Tanner Linsley
0cf5cdc9c8 release: v1.127.1 v1.127.1 2025-07-11 17:58:01 +00:00
kusiewicz
c334ecf546
fix: remove debug log (#4604) 2025-07-11 19:49:35 +02:00
Tanner Linsley
121df623eb release: v1.127.0 v1.127.0 2025-07-10 22:26:56 +00:00
Manuel Schiller
6475b35057
feat: use seroval for SSR (#4600) 2025-07-11 00:25:32 +02:00
Tanner Linsley
d0ed7ce016 release: v1.126.2 v1.126.2 2025-07-10 21:04:59 +00:00
Nico Lynzaad
16e50e09bf
fix: resolve false positive "could not find match from" (#4610)
fixes #4284
2025-07-10 22:58:08 +02:00
Sean Cassiere
b9f88c5426
test(router-plugin): split addHmr snapshot testing (#4612) 2025-07-10 19:49:47 +12:00
Tanner Linsley
9ebcb2aa37 release: v1.126.1 v1.126.1 2025-07-10 03:43:06 +00:00
wookhyung
f9b5a5a4a8
fix(start): support SSR for non-Latin character route paths (#4611) 2025-07-10 15:33:18 +12:00
Tanner Linsley
4124583bce release: v1.126.0 v1.126.0 2025-07-09 21:28:49 +00:00
Manuel Schiller
d4ddeb52d0
feat: custom vite react/solid plugins (#4609) 2025-07-09 23:26:22 +02:00
Tanner Linsley
3193ee9b68 release: v1.125.7 v1.125.7 2025-07-09 20:53:59 +00:00
Brenley Dueck
fb3d30aa86
fix: lock solid-store version (#4607)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-09 22:47:08 +02:00
Robert Soriano
9ae73ac989
chore(examples): Bump @clerk/tanstack-react-start to 0.19.0 (#4605) 2025-07-09 19:41:09 +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
Tanner Linsley
63c82b638f release: v1.125.6 v1.125.6 2025-07-07 18:14:42 +00:00
Manuel Schiller
ba6f0bac3f
fix: correct url in dev server (#4593) 2025-07-07 20:07:36 +02:00
Manuel Schiller
7ff52af738
fix: set component return type to any by default (#4592) 2025-07-07 20:07:27 +02:00
Dimitris Karagiannis
3705d8dd4d
docs: improve wording for LLM assistance support in installation.md (#4586) 2025-07-07 19:03:24 +02:00
Tanner Linsley
b01a349583 release: v1.125.5 v1.125.5 2025-07-07 03:42:20 +00:00
Wei Tang Lin
84228d51dd
fix(router-plugin): code-splitting to handle explicit undefined (#4564)
Co-authored-by: weitang.lin <weitang.lin@mujin.co.jp>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-07-07 15:35:55 +12: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
Tanner Linsley
e962feba79 release: v1.125.4 v1.125.4 2025-07-06 16:28:55 +00:00
Nico Lynzaad
96032358b2
fix: buildLocation check for non changing routes - consider trailing slashes (#4581)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-06 18:22:11 +02:00
Elliot Nash
ae2e919ebf
docs(start): update hosting docs to reflect vite migration (#4575) 2025-07-06 15:04:40 +02:00
Tanner Linsley
665ceda4a8 release: v1.125.3 v1.125.3 2025-07-06 10:42:17 +00:00
Tanner Linsley
5b4a874c1d
fix: trim undefined from splat routes with no param (#4558)
Fixes #4547

---------

Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-07-06 12:40:58 +02:00
Brenley Dueck
1098db7c88
fix(solid-router): rerender match when id changes (#4568) 2025-07-06 10:12:17 +02:00
Tanner Linsley
59814eb554 release: v1.125.2 v1.125.2 2025-07-06 06:08:33 +00:00
Brenley Dueck
eb8a5f0773
fix(solid-router): loaders being called twice during SSR (#4574)
Basically my understanding is that the `load` function gets called once
during SSR but right now our `Transitioner` calls it again as it appears
`createRenderEffect` run on the server too where as the `useEffect` in
React doesn't.

The fix is just to bail out if its running on the server. Feels kinda
hacky but it works.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-06 07:54:13 +02:00
Tanner Linsley
6c46c6e1dd release: v1.125.1 v1.125.1 2025-07-05 19:44:03 +00:00
Manuel Schiller
ffb1fb4c62
fix: clear pendingTimeout when match resolves (#4579) 2025-07-05 21:41:45 +02:00
Tanner Linsley
eb21cc7e45 release: v1.125.0 v1.125.0 2025-07-05 12:36:31 +00: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