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

117 commits

Author SHA1 Message Date
Manuel Schiller
d180d06a42 Merge remote-tracking branch 'origin/main' into HEAD 2025-05-08 23:44:22 +02:00
Tanner Linsley
14be184843 release: v1.120.3 2025-05-08 21:15:31 +00:00
Christopher Horobin
32511d11c7
perf: improve type checking performance of Route.Link (#4117) 2025-05-08 23:14:15 +02:00
SeanCassiere
e7569ce2e3
fix conflicts 2025-05-08 08:04:38 +12:00
Tanner Linsley
163aaa33f2 release: v1.120.2 2025-05-06 23:32:39 +00:00
Christopher Horobin
f6be2df066
perf: improve ts perf for Route.Link (#4104) 2025-05-07 01:31:10 +02:00
Tanner Linsley
3ab84a8d73 release: v1.120.1 2025-05-06 20:13:30 +00:00
Christopher Horobin
2c37ce289e
fix: use this.fullPath instead of useRouter (#4099) 2025-05-06 22:12:14 +02:00
Manuel Schiller
f17dceb77e ensure extracted dev scripts run before hydration 2025-05-06 22:02:41 +02:00
Tanner Linsley
468edac9f1 release: v1.120.0 2025-05-06 19:48:31 +00:00
Christopher Horobin
5eeb123381
feat: add bindings for Route.Link and routeApi.Link (#4095)
This allows `Route.Link` and `routeApi.Link` bindings instead of manual
`from`.

We never used to be able to do this due to circular issues but it seems
this is no longer an issue since all the changes to the types

---------

Co-authored-by: TkDodo <office@dorfmeister.cc>
2025-05-06 21:47:14 +02:00
SeanCassiere
bdc694d4b8
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-30 22:10:32 +12:00
Tanner Linsley
91ae17d7ea release: v1.119.0 2025-04-30 09:45:19 +00:00
SeanCassiere
aec638a714
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-25 14:32:27 +12:00
Tanner Linsley
5bf73eaa85 release: v1.117.1 2025-04-24 21:11:24 +00:00
Manuel Schiller
afdafcf63a
fix: pending component handling for initial load (#4044) 2025-04-24 23:09:47 +02:00
SeanCassiere
8cb2bbc816
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-23 13:53:35 +12:00
Tanner Linsley
3cbb3e8492 release: v1.117.0 2025-04-23 01:48:48 +00:00
SeanCassiere
1af2c83125
making routePathname possibly undefined 2025-04-19 09:50:55 +12:00
Manuel Schiller
b1da22b412 Merge remote-tracking branch 'origin/main' into HEAD 2025-04-17 09:24:14 +02:00
Tanner Linsley
d843f83057 release: v1.116.0 2025-04-13 19:59:11 +00:00
Zac Rosenbauer
f0138f80b0
feat(react-router): Export ClientOnly (#3969)
Exposes the `ClientOnly` component for preventing rendering & hydration
errors.

## Background

When you attempt to prevent content from rendering using something like
`typeof document !== 'undefined'` as that type of conditional will cause
hydration errors.

## API

```tsx
import { ClientOnly, createRoute } from '@tanstack/react-router'
import { Charts, FallbackCharts } from './charts-that-break-server-side-rendering'

const Route = createRoute({
  // ... other route options
  path: '/dashboard',
  component: Dashboard,
})

function Dashboard() {
  return (
    <div>
      <p>Dashboard</p>
      <ClientOnly fallback={<FallbackCharts />}>
        <Charts />
      </ClientOnly>
    </div>
  )
}
```

> [!NOTE]
> This component as is (other than I removed the `children` as a
`function`) in production on [joggr.io](https://joggr.io)

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: Ahmed Abdelbaset <A7med3bdulBaset@gmail.com>
Co-authored-by: Birk Skyum <birk.skyum@pm.me>
2025-04-13 10:50:44 +02:00
Birk Skyum
1fcd95225d format with prettier 2025-04-12 15:54:48 +02:00
Tanner Linsley
af455d812f release: v1.115.3 2025-04-11 17:19:44 +00:00
SeanCassiere
0c41d0e960
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-06 20:21:14 +12:00
Tanner Linsley
361d32b2d5 release: v1.115.0 2025-04-06 04:50:31 +00:00
SeanCassiere
d16875a9d2
fix(react,solid): extract CSS for preloading
the vite manifest has a key named `css` which stores
the locations of the related CSS files tied to the
individual vite build artifacts.

this changes pulls those artifacts out at build time
and imports it during hydration.

this change works for both React and Solid. Solid has
a issue where deduplication isn't working at the
moment, but this change does not cause it so it should
be investigated separately
2025-04-03 15:34:19 +13:00
SeanCassiere
25d438b21c
Merge remote-tracking branch 'origin/main' into devinxi 2025-04-03 12:56:30 +13:00
Tanner Linsley
f8015e7629 release: v1.114.33 2025-04-02 18:43:59 +00:00
Alex
9b95618f5b
fix(react-router): restore scroll position onResolved (#3914)
Fixes #3741 

Added hash scroll handling directly in the React `Transitioner`
component's `onResolved`, similar to how it's implemented in the Solid
version
2025-04-02 20:37:36 +02:00
Tanner Linsley
9ca08f4756 release: v1.114.32 2025-04-01 14:24:37 +00:00
Christopher Horobin
fb99d92ca8
fix(router-core): remove React type dependency (#3902) 2025-04-01 16:23:06 +02:00
SeanCassiere
eeb6bf3fee
Merge remote-tracking branch 'origin/main' into devinxi 2025-03-31 21:42:08 +13:00
Tanner Linsley
c67c0e1f3a release: v1.114.29 2025-03-27 00:35:38 +00:00
SeanCassiere
de4dae1d77
Merge remote-tracking branch 'origin/main' into devinxi 2025-03-22 00:19:52 +13:00
Birk Skyum
6cc793c212 sync solid 1cae52b 2025-03-21 02:08:38 +01:00
Birk Skyum
1fe19927c2 sync solid ab070e4 2025-03-21 02:06:14 +01:00
Tanner Linsley
7dfee394c2 release: v1.114.26 2025-03-20 14:15:32 +00:00
Brenley Dueck
cf0f2a7ca9
fix(solid-router): nav flickering and view transitions (#3813)
I think this should fix the nav flicker some people have brought up.
This also seems to fix the view transitions issue

Basically a tweak of this pr
https://github.com/TanStack/router/pull/3589/files
2025-03-20 15:08:23 +01:00
Birk Skyum
2d80fb9d0e createFileRoute-without-path in solid-router 2025-03-18 19:50:37 +01:00
Birk Skyum
a640c9a683 remove eslint rule 2025-03-18 19:39:02 +01:00
Tanner Linsley
7c229b3539 release: v1.114.25 2025-03-18 18:27:26 +00:00
Birk Skyum
27b02830b0
refactor(router-core): moving internals of Router to router core (#3800) 2025-03-18 19:26:13 +01:00
Tanner Linsley
4190c07628 release: v1.114.24 2025-03-18 12:06:26 +00:00
Birk Skyum
647949522a
refactor(router-core): move internals of Route to router-core (#3803)
Similar to #3800 , this use base classes to contain shared methods of
the solid/react-router Route in the router-core package.
2025-03-18 13:04:59 +01:00
Tanner Linsley
57422b3edb Squashed commit of the following:
commit c7f7626ec7
Merge: 42d63bec3 1c71ab16c
Author: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Date:   Tue Mar 4 12:55:03 2025 +1300

    Merge branch 'main' into createFileRoute-without-path

commit 42d63bec35
Merge: 494ac4177 633d13b76
Author: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Date:   Mon Mar 3 01:23:28 2025 +1300

    Merge branch 'main' into createFileRoute-without-path

commit 494ac41776
Author: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Date:   Sat Mar 1 08:05:48 2025 +0000

    ci: apply automated fixes

commit f491a8c454
Author: Manuel Schiller <manuel.schiller@caligano.de>
Date:   Sat Mar 1 02:46:35 2025 +0100

    less verbose

commit 42329f7b2b
Author: Manuel Schiller <manuel.schiller@caligano.de>
Date:   Sat Mar 1 02:30:43 2025 +0100

    even less verbose

commit e38abb1d42
Author: Manuel Schiller <manuel.schiller@caligano.de>
Date:   Sat Mar 1 01:56:16 2025 +0100

    fix: createFileRoute without path
2025-03-17 20:07:20 -06:00
Tanner Linsley
4d675074b0 release: v1.114.23 2025-03-16 23:20:07 +00:00
SeanCassiere
cafaaf09bb
Merge remote-tracking branch 'origin/main' into devinxi 2025-03-16 14:50:18 +13:00
Tanner Linsley
f02a7bcecf release: v1.114.22 2025-03-15 22:54:39 +00:00
SeanCassiere
d646e4f6f2
extract plugin add-ons to the head
using `viteServer.transformIndexHtml`, extract the HMR add-ons used by `plugin-react` and inject them using `.injectHtml()`.
no more having to "fake HMR"
2025-03-13 23:03:54 +13:00