0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-18 19:34:24 +00:00
Commit graph

6,689 commits

Author SHA1 Message Date
Tanner Linsley
3426c55fbe release: v1.31.23 v1.31.23 2024-05-08 05:33:38 +00:00
Tanner Linsley
8091135472 fix: SSR composition fixes 2024-05-07 23:31:00 -06:00
Tanner Linsley
ac2af70d91 release: v1.31.22 v1.31.22 2024-05-07 22:23:13 +00:00
Tanner Linsley
7e6d2b7920 fix: remove superfluous newline and script tag in deferred promise streaming 2024-05-07 16:20:28 -06:00
Tanner Linsley
6251562bf6 release: v1.31.21 v1.31.21 2024-05-07 16:52:16 +00:00
Tanner Linsley
c4d1ba67c7 fix: experimental backport to get React 19 <head> rendering anywhere in the document 2024-05-07 10:48:50 -06:00
Manuel Schiller
64ae7c3998
docs: improve routeFileIgnorePattern description 2024-05-06 17:49:41 +02:00
Tanner Linsley
97522767b3 release: v1.31.20 v1.31.20 2024-05-05 14:44:29 +00:00
Manuel Schiller
63d603b7b9 fix: replaceEqualDeep correctly handles arrays that contain undefined
fix ported from query: https://github.com/TanStack/query/pull/7376
2024-05-05 16:41:34 +02:00
Manuel Schiller
b69e8f88b3 chore: eslint 2024-05-05 16:39:05 +02:00
Tanner Linsley
5aa76d4d0c release: v1.31.19 v1.31.19 2024-05-04 11:27:27 +00:00
Sean Cassiere
3b198880d3
fix(react-router): when navigating without to the layout segments are not being stripped out (#1561)
* test(react-router): what is expected to happen

* test: .

* chore(react-router): add util for stripping out the layout identifier segments from a path

* fix(react-router): stripping out the layout identifiers segments when matching the fromRoute

* chore: .

* test: better descriptions as to whats happenning

* test(react-router): removeLayoutSegments helper

* chore: too many `"`
2024-05-04 23:25:41 +12:00
Tanner Linsley
fae0fe55f5 release: v1.31.18 v1.31.18 2024-05-04 09:39:27 +00:00
Adam Maas
fda1559fa3
fix(router-vite-plugin): use cwd instead of vite.root (#1557) 2024-05-04 11:37:14 +02:00
Tanner Linsley
7095f9e5af release: v1.31.17 v1.31.17 2024-05-04 06:22:51 +00:00
Sean Cassiere
fc2859d3f8
fix(react-router): on initial load the router.state.status does not transition to "idle" (#1559)
* fix(react-router): router status never changing from `pending` to `idle`

* test(react-router): add a test so we dont break this in the future

* test(react-router): check if the onResolved event is emitted

* fix(react-router): usePrevious hook wasnt actually working

* refactor(react-router): undo the changes I first made

* test(react-router): actually waiting for the event to be called

* refactor(react-router): better-er usePrevious hook?

* test(react-router): better names

* test(react-router): unused import

* refactor(react-router): remove the commented out usePrevious hook

* test(react-router): correctly subscribe to the onLoad fn

* test(react-router): restrict to onResolved for now

* test(react-router): check that the "onResolved" event is fired after a navigation as well

* test(react-router): remove the console log statement

* test(react-router): rename the mock function for future re-use
2024-05-04 18:21:17 +12:00
Tanner Linsley
52ed392f4c release: v1.31.16 v1.31.16 2024-05-04 02:54:26 +00:00
Sean Cassiere
4ad8748208
fix(history): index and entries for pushState using memoryHistory could fall out of sync (#1558) 2024-05-04 14:52:51 +12:00
Tanner Linsley
d3d259b31f release: v1.31.15 v1.31.15 2024-05-03 20:58:27 +00:00
Sean Cassiere
ded977f07f
fix(react-router): incorrectly returning undefined as parentMatchPromise in the loader in the child route (#1546) 2024-05-04 08:56:39 +12:00
Tanner Linsley
e659c25f85 release: v1.31.14 v1.31.14 2024-05-03 19:03:53 +00:00
Jake Hedman
8a5ecbff8d
fix: Navigate on state change (#1530)
Don't skip navigation if state has changed even if the URL is unchanged.
2024-05-03 13:01:06 -06:00
Tanner Linsley
6fe0aa4c84 release: v1.31.13 v1.31.13 2024-05-03 16:36:40 +00:00
Tanner Linsley
50587538da fix: types 2024-05-03 10:34:21 -06:00
Tanner Linsley
51eb39b85e fix: use router default pending for root suspense fallback 2024-05-03 10:27:27 -06:00
Tanner Linsley
b7c0575b05 fix: utilize the new shell 2024-05-03 10:16:52 -06:00
Tanner Linsley
221e6033d6 release: v1.31.12 v1.31.12 2024-05-03 16:13:36 +00:00
Tanner Linsley
0695f07005 fix: move shellComponent to root route options only 2024-05-03 10:11:16 -06:00
Tanner Linsley
418e60769a release: v1.31.11 v1.31.11 2024-05-03 16:03:55 +00:00
Tanner Linsley
c3727978f2 fix: add shellComponent route options for SSR purposes 2024-05-03 10:01:43 -06:00
Tanner Linsley
babbe90631 release: v1.31.10 v1.31.10 2024-05-03 15:38:12 +00:00
Tanner Linsley
036c12ea72 fix: bring back root suspense 2024-05-03 09:35:28 -06:00
Tanner Linsley
f5767cb974 release: v1.31.9 v1.31.9 2024-05-03 06:02:43 +00:00
Tanner Linsley
678faac8ff fix: appease types 2024-05-03 00:00:34 -06:00
Tanner Linsley
7eb81765e5 fix: experimental shell rendering strategy 2024-05-02 23:56:44 -06:00
Tanner Linsley
2ad335fac9 release: v1.31.8 v1.31.8 2024-05-03 01:13:59 +00:00
Tanner Linsley
f67bb5ab17 fix: remove deferred data on exec 2024-05-02 19:11:47 -06:00
Tanner Linsley
7453afb952 release: v1.31.7 v1.31.7 2024-05-02 22:00:52 +00:00
Ciarán Curley
ba6e304679
fix(react-router): changing path params without specifying the to destination (#1548)
* test(react-router): test router.navigate with params

* test(react-router): test router.navigate with params

* fix: move tests to dedicated redirects file

* test(react-router): more complex tests for multiple params

* test(react-router): refactor tests

* fix: make tests pass

* chore: removed unused route exports

* chore: copy changes

* style(react-router): prettier

Co-Authored-By: Ciarán Curley <ciaran.curley.11.11@gmail.com>

* test(react-router): streamline the tests

* test(react-router): remove the tests from here since they've been moved

* test: test both object and function syntax

---------

Co-authored-by: Ciarán Curley <ciaran.curley@apata.io>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-05-03 09:59:09 +12:00
Tanner Linsley
61ecd34f05 release: v1.31.6 v1.31.6 2024-05-02 00:02:28 +00:00
Sean Cassiere
679b5b075b
fix(react-router): viewTransition property not being respected during navigation on <Link> and useNavigate() (#1547)
* fix(react-router): respect the view transition preference on the `<Link>` component

* fix(react-router): make sense the viewTransition property works for router.navigate
2024-05-02 12:00:53 +12:00
Tanner Linsley
c56dcf4fbd release: v1.31.5 2024-05-01 16:29:55 -06:00
Tanner Linsley
f3d0380f3a fix: proper reloading after redirects, reload when navigating to the same exact URL
Fixes #1541
Fixes #1537
Fixes #1534
Fixes #1528
2024-05-01 16:29:55 -06:00
Tanner Linsley
a4a5b5e568 release: v1.31.4 v1.31.4 2024-05-01 08:51:07 +00:00
Sean Cassiere
fbf1d0299d
fix: persisting the 'disabled' prop for custom link elements using createLink (#1544)
* fix(react-router): do not remove the disabled prop for `_asChild` links

* refactor(react-router): useLinkProps always returns a `disabled` boolean

* test(react-router): make sure this works as exptected

* test(react-router): tests to include other props

* test: use queryByText
2024-05-01 20:49:21 +12:00
Tanner Linsley
7507443205 release: v1.31.3 v1.31.3 2024-04-29 19:53:01 +00:00
Christopher Horobin
e0597e4bb8
fix: to should autocomplete for MatchRoute (#1535) 2024-04-29 21:51:23 +02:00
Tanner Linsley
76e7681967 release: v1.31.2 v1.31.2 2024-04-29 15:05:54 +00:00
Tanner Linsley
69fe04a5c2 fix: properly handle redirects in load 2024-04-29 09:03:40 -06:00
Tanner Linsley
7987a892cb fix: devtools 2024-04-26 14:47:05 -06:00