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

6,229 commits

Author SHA1 Message Date
Sean Cassiere
205994c8cc
tests: reproducer for #2006 (#2040)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2024-10-21 22:11:27 +02:00
Tanner Linsley
65a58c51fa release: v1.74.6 v1.74.6 2024-10-21 17:50:23 +00:00
Manuel Schiller
ff7387cd26
fix(react-router): resolve loadPromise when beforeLoad throws (#2610)
fixes #2198
fixes #1688
2024-10-21 19:48:23 +02:00
Tom Ballinger
6144cf036d
examples: use a shared Convex backend for StackBlitz (#2606)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-21 19:39:45 +02:00
Tanner Linsley
ee65817569 release: v1.74.5 v1.74.5 2024-10-21 16:49:48 +00:00
Manuel Schiller
b884be89a4
fix(react-router): handle redirects in loaders after invalidate (#2609)
fixes #2504
2024-10-21 18:48:18 +02:00
Christoffer Berg Jensen
5cc2f9f1b0
docs: add to createLink documentation (#2506)
* Refactor `createLink` documentation

Revise the text and examples in the `createLink` guide for better clarity and completeness. Added sections for React Aria Components, Chakra UI, and MUI with detailed code examples to illustrate the usage of third-party libraries.

* Improve clarity in custom-link.md

* Replace createLink implementation for ButtonLink component

* Remove redundant explanation in MUI example of custom-link guide

* Rename and simplify component creation in CustomLink guide

* Rename and streamline custom link components

* Fix consistency in prop quoting and remove unused import

* Small consistency improvements between examples

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-10-21 10:07:10 +02:00
renovate[bot]
6260b6766d
chore(deps): update all non-major dependencies (#2605)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-21 04:03:33 +00:00
Tanner Linsley
b987e72a56 release: v1.74.4 v1.74.4 2024-10-20 22:38:24 +00:00
Maya
d92dd1e6aa
fix(react-router): fix explicitUndefined links never matching (#2604)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-21 00:34:27 +02:00
Tanner Linsley
ca4e86aff6 release: v1.74.3 v1.74.3 2024-10-20 22:14:19 +00:00
Manuel Schiller
2127eac611
fix(react-router): run search middlewares also on entering matches (#2603)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-21 00:12:31 +02:00
Tanner Linsley
a3b3eadec5 release: v1.74.2 v1.74.2 2024-10-20 15:52:31 +00:00
Manuel Schiller
5499693bb3
fix(react-router): correct typing for unnested routes (#2597)
* fix(react-router): correct typing for unnested routes

fixes #2595
fixes #2596

* regenerate examples/tests
2024-10-20 17:48:18 +02:00
Manuel Schiller
baa8022ce9
fix(start): server function returns status code 500 in case of unhandled error (#2599)
fixes #2577
2024-10-20 17:48:07 +02:00
Tanner Linsley
947c80562b release: v1.74.1 v1.74.1 2024-10-20 10:27:40 +00:00
Manuel Schiller
82c2f4982c
fix(start): make router context available in match context after hydration (#2598)
fixes #2593
2024-10-20 12:22:44 +02:00
Tanner Linsley
4f072ffea3 release: v1.74.0 v1.74.0 2024-10-20 00:38:40 +00:00
Manuel Schiller
30730a383d
feat(react-router): allow to explicitly check if a search prop is not set (#2592) 2024-10-20 02:35:42 +02:00
Tanner Linsley
a27e9f2091 release: v1.73.1 v1.73.1 2024-10-18 23:09:42 +00:00
Manuel Schiller
0abdb16233
fix(router-generator): correctly generate ids for single routes inside route groups (#2585) 2024-10-19 01:08:16 +02:00
Nicolas Beaussart
45d598240f
docs: add monorepo with simple and react query example (#2479)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2024-10-18 23:51:23 +02:00
Tanner Linsley
164dc88e80 release: v1.73.0 v1.73.0 2024-10-18 21:45:27 +00:00
Manuel Schiller
eba70d5f57
feat(react-router): add method to selectively removed cached matches (#2575) 2024-10-18 23:41:37 +02:00
Tanner Linsley
0219a10edb release: v1.72.1 v1.72.1 2024-10-18 21:31:20 +00:00
Manuel Schiller
965f4fd0a8
fix(react-router): only optional params may be removed (#2583) 2024-10-18 23:29:59 +02:00
Tanner Linsley
ed6243d69e release: v1.72.0 v1.72.0 2024-10-18 20:48:34 +00:00
Manuel Schiller
ac7171c7e1
feat(react-router): execute search middlewares also upon navigation (#2581) 2024-10-18 22:47:18 +02:00
Tanner Linsley
72e7563a00 release: v1.71.0 v1.71.0 2024-10-18 20:35:20 +00:00
Manuel Schiller
8d56157b07
feat(react-router): add stripSearchParams middleware (#2579) 2024-10-18 22:33:18 +02:00
Manuel Schiller
db8e8f031a
chore: regenerate examples after generator changed (#2580) 2024-10-18 22:32:46 +02:00
Tanner Linsley
154c95cf59 release: v1.70.2 v1.70.2 2024-10-18 16:40:29 +00:00
Manuel Schiller
80ee58d8d4
fix(react-router): prevent props from being spread into Links (#2574) 2024-10-18 18:38:26 +02:00
Manuel Schiller
4e07c749c1
tests: add e2e test for getRouteApi inside route groups (#2569) 2024-10-18 00:31:21 +02:00
Tom Ballinger
e49d47e5df
Bump convex version to get VITE_ envvar prefix (#2563)
* Bump convex version to get VITE_ envvar prefix

* update lockfile
2024-10-17 16:29:21 -04:00
Tanner Linsley
dad80998b3 release: v1.70.1 v1.70.1 2024-10-17 19:30:23 +00:00
Manuel Schiller
debd7c32b3
fix(react-router): update link href upon search change to prevent stale links (#2565) 2024-10-17 21:29:06 +02:00
Sean Cassiere
3f62f50818
chore: pnpm dedupe (#2561) 2024-10-17 11:36:19 +13:00
Dmitrii Kuzmin
14b0e1d629
docs(router): update nested routes comparison (#2548) 2024-10-17 11:20:25 +13:00
Tom Ballinger
c97fa7e813
chore(examples): update convex codegen (#2558)
* Update Convex codegen

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-17 11:19:12 +13:00
Tanner Linsley
a303db13e3 release: v1.70.0 v1.70.0 2024-10-16 18:14:22 +00:00
Manuel Schiller
93a62724a5
feat(react-router): allow to selectively invalidate matches (#2551) 2024-10-16 20:09:42 +02:00
Manuel Schiller
69b5728e8f
fix(eslint-plugin-router): add missing properties to rule create-route-property-order (#2557) 2024-10-16 20:09:30 +02:00
Manuel Schiller
7002a17e3c
fix(react-router): move componentsPromise from match to route (#2556) 2024-10-16 20:09:19 +02:00
Manuel Schiller
2d0ff561cc
feat(react-router): added router option search.strict (#2552)
Configures how unknown search params (= not returned by any `validateSearch`) are treated.
2024-10-16 18:27:52 +02:00
Tanner Linsley
c2fe66db93 release: v1.69.3 v1.69.3 2024-10-16 03:34:43 +00:00
Manuel Schiller
c5da3207b4
fix(start): revert status codes for redirect/not found (#2555) 2024-10-16 05:32:43 +02:00
Tanner Linsley
8536b7396a release: v1.69.2 v1.69.2 2024-10-15 22:31:33 +00:00
Manuel Schiller
77fe390ec3
fix(start): correctly handle custom response status codes (#2553)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-16 00:30:17 +02:00
stevenlyd
ac61e8ee38
test: Add test cases for route id consistency (#2401)
* tweaked the fallback order

* added getLastPathSegment util function

* removed unused import

* added test case for getLastPathSegment()

* trim parent id prefix when creating lazy routes

* added test cases

* removed unused import

* made test case more strict

* use it.each

* Added test for route id uniqueness

* added test cases to check if the option.id for lazyRoute is trimmed

* revert changes, keep only the tests

* removed unused import

---------

Co-authored-by: Yidong Liu <yliu@plexxis.com>
2024-10-15 21:35:04 +02:00