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

6,478 commits

Author SHA1 Message Date
Tanner Linsley
c2fbb56b25 fix: experimental support for createLink 2024-03-11 16:50:12 -06:00
Sekamatte Soul Solomon
2094ca89c8
docs: Update decisions-on-dx.md (#1288)
Fix: Grammatical errors in docs
2024-03-11 17:38:54 +01:00
Tanner Linsley
4c0baa1bad release: v1.19.6 v1.19.6 2024-03-10 18:35:46 +00:00
Manuel Schiller
80ab1ec5e7
fix: correctly generate route tree for nested layouts with path params (#1287) 2024-03-10 19:34:39 +01:00
Tanner Linsley
48d8424f45 release: v1.19.5 v1.19.5 2024-03-09 23:37:16 +00:00
Sean Cassiere
f855ec15b0
fix(router-generator): incorrect route-tree generation for nested layout routes (#1285)
* its working for now!

* actual working state

* kitchen sink expensive example being broken

* execute the `handleNode` function in order of the preRouteNodes
2024-03-10 00:35:01 +01:00
Tanner Linsley
c389cade73 release: v1.19.4 v1.19.4 2024-03-09 20:37:10 +00:00
Christopher Horobin
92a5c6b40e
fix: eliminate omit and reduce intersections to improve file based routing typescript performance (#1283)
* perf: eliminate omit and reduce intersections

* chore: correct TLoaderData

* chore: preserve type params
2024-03-09 21:35:56 +01:00
Nils Hartmann
734970aacc
docs: fix useMatchHook (#1282)
- options argument is not optional
- clarify opts.from/opts.strict dependency
2024-03-09 16:21:58 +01:00
Tanner Linsley
8ee4cf4104 release: v1.19.3 v1.19.3 2024-03-09 12:35:11 +00:00
Sean Cassiere
1d176caefa
fix: invalid formation of ids and attaching of child layout routes (#1280)
* fix: child routes not being correctly placed in the route tree

* chore: remove unused commented code

* fix: correctly determining the `node.path` based on the parent for _layout routes that require a virtual parent

* fix: unintended addition of spaces in the route template

* feat: only rendering layout routes if they have children

* fix: grandchild nested layout not being attached to parent layouts up the tree

* chore: remove unused check
2024-03-09 13:34:07 +01:00
Manuel Schiller
409b06dbb7 chore: fix doc formatting 2024-03-09 11:57:34 +01:00
Sean Cassiere
e4bc7d7e0a
docs: normalizing the hierarchy content in the reference pages (#1232)
* createFileRoute

* createRootRoute

* createRouteFunction

* createRouteFunction and RouteClass

* defer, awaitComponent, useAwaitedHook

* getRouteApiFunction and RouteApiClass

* isNotFoundFunction

* isRedirectFunction

* lazyRouteComponentFunction

* createRootRouteWithContext

* createRootRouteFunction

* new notFound conventions

* NotFoundRouteClass

* redirectFunction

* RedirectType

* catchBoundaryComponent

* catchNotFoundComponent

* DefaultGlobalNotFound

* useLinkPropsHook

* ActiveLinkOptions

* errorComponentComponent

* linkComponent

* LinkOptionsType

* LinkPropsType

* navigateComponent

* NavigateOptionsType

* outletComponent

* ToOptionsType

* FileRouteClass

* add the word type

* rootRouteWithContextFunction

* matchRouteComponent

* MatchRouteOptionsType

* useChildMatchesHook

* useLinkPropsHook

* UseLinkPropsOptionsType

* useLoaderDataHook

* useMatchesHook

* useMatchHook

* useMatchRouteHook

* UseMatchRouteOptionsType

* useNavigateHook

* useParamsHook

* useParentMatchesHook

* AllParamsType, RegisteredRouterType, RegisterType

* alphabetical sorting

* add link to the RouteMatchType

* useLoaderDataHook

* AnyRouteMatchType

* bulk for types

* consistency in page linking

* remove backticks from heading items that do not wrap inline-code-blocks
2024-03-08 11:37:02 +01:00
Tanner Linsley
3a8ec613d2 release: v1.19.2 v1.19.2 2024-03-08 09:46:10 +00:00
Sean Cassiere
52afeee214
fix: incorrect route generation for nested layout routes (#1272)
* feat: looks jank but it works

* feat: definitely never ship this

* feat: got virtual parent routes to begin printing

* feat: checkpoint

* feat: fully working

* chore: jsdoc comments

* chore: reduce some complexity

* chore: 🥲

* feat: simplifying the comments (and commented code) and remove the variable segment reducing function

* chore: remove unused `isParentRoot` prop

* fix: cases where two routes need the same virtual parent route node

* fix: attaching non-layout routes to the virtual parent route
2024-03-08 10:43:13 +01:00
orlik
3677eb8586
fix: resolvePathWithBase without dest.to (#1275)
https://github.com/TanStack/router/issues/1273
2024-03-08 10:43:01 +01:00
Seedy
4e78898280
docs: Update scroll-restoration.md (#1270) 2024-03-07 21:13:07 +01:00
Alejandra
2600d771f2
docs: Update authenticated-routes.md (#1267) 2024-03-06 21:27:13 +01:00
Alejandra
4422ed294c
focs: fix typos in route-trees.md (#1266)
* fix: minor typo in `route-trees.md`

* Update route-trees.md

* Update route-trees.md

* Update route-trees.md
2024-03-05 21:36:30 +01:00
Tanner Linsley
18aa0234b2 release: v1.19.1 v1.19.1 2024-03-04 21:22:31 +00:00
Tanner Linsley
35dbdd406d fix: simplify link impl 2024-03-04 14:20:02 -07:00
Tanner Linsley
9615176130 release: v1.19.0 v1.19.0 2024-03-04 20:36:58 +00:00
Christopher Horobin
6484449053
fix: allow '../' and './' without 'from' but lose type saftety (#1261) 2024-03-04 21:34:29 +01:00
Norbert Elter
1a95d98250
feat: optionally allow to disable logging in generator (#1256)
* feat: disableLogging

* feat: logging util
2024-03-04 21:34:03 +01:00
Tanner Linsley
7bc9c6988b release: v1.18.5 v1.18.5 2024-03-04 19:13:50 +00:00
Tanner Linsley
ad0d804358 fix: react-router-server version 2024-03-04 12:11:42 -07:00
Tanner Linsley
e182fc50fa release: v1.18.4 v1.18.4 2024-03-04 18:26:17 +00:00
Tanner Linsley
3b559fc931
fix: ssr improvements (#1248)
* fix: ssr improvements

* fix: remove log

* fix: remove log

* fix: remove comments

* docs: root abstraction

* fix: remove commented code

* fix: remove old TLoaderData fix attempt

* fix: remove commented code

* fix: imports

* docs: format

* fix: deprecate and handle not found "global" option
2024-03-04 11:23:41 -07:00
Yiheng
1a37474f84
docs: Update file-based-routing.md (#1257)
* Update file-based-routing.md

* Update file-based-routing.md
2024-03-04 11:20:59 +01:00
Abdullah_Aleiti
aa3da31925
docs: Fix route-trees.md to use appropriate article. (#1254) 2024-03-03 19:54:13 +01:00
Pawel Fajfer
73fc10b195
docs: make loader function async in deferred-data-loading guide (#1258) 2024-03-03 19:50:11 +01:00
Tanner Linsley
b7c34f4a89 release: v1.18.3 v1.18.3 2024-03-02 16:53:37 +00:00
Manuel Schiller
9cdb87b7ac
fix: remove route group from id for lazy file routes (#1253) 2024-03-02 17:52:34 +01:00
Tanner Linsley
e10833c334 release: v1.18.2 v1.18.2 2024-03-02 14:55:16 +00:00
Manuel Schiller
6fb0ddda81
fix: correct typing for of route id when route groups are used (#1252)
* fix: correct typing for of route id when route groups are used

* chore: fix formatting
2024-03-02 15:54:15 +01:00
Tanner Linsley
49e0ce0c98 release: v1.18.1 v1.18.1 2024-03-01 21:59:55 +00:00
Manuel Schiller
419cb45975
fix: correct typing for route groups (#1245)
since we need to handle the path replacements in typescript as well, we cannot let the user configure the route group pattern
2024-03-01 14:58:31 -07:00
Leo Vigna
37256b22d1
docs: fix contributing guide to explicilty mention build:all command (#1244)
* fix contributing guide to explicilty mention build:all command

* add example usage link to README.md
2024-03-01 22:22:15 +01:00
Tanner Linsley
507fd80375 release: v1.18.0 v1.18.0 2024-03-01 18:05:23 +00:00
Manuel Schiller
7731a3926b
feat: add route grouping for file based routing (#1241) 2024-03-01 11:04:21 -07:00
Tanner Linsley
23be96ccf7 release: v1.17.5 v1.17.5 2024-03-01 15:45:33 +00:00
Manuel Schiller
46b154e431
fix: Route.useMatch and RouteApi.useMatch use correct typing (#1239) 2024-03-01 08:20:50 -07:00
Christopher Horobin
f759995401
fix: improve typescript performance of relative pathing and larger route trees (#1226) 2024-03-01 08:50:48 +01:00
Tomasz Wysocki
69072fd545
docs: fix links in Decisions on DX page (#1236) 2024-02-29 18:47:53 -07:00
Sean Cassiere
135b76453d
docs: fix queryKey to be compliant with the current tanstack-query v5 syntax (#1228)
* docs: fix `queryKey` to match the tanstack-query v5 syntax

* docs: actually call the `fetchPosts` fn
2024-02-29 18:47:24 -07:00
Makisuo
6b2d7ff28f
docs: fix context loader example (#1235) 2024-02-29 17:33:55 +01:00
Sean Cassiere
b2004cbbdc
docs: fixing some inconsistencies in the guides (#1229)
* fix: `routeTree` into the `createRouter` instance

* fix: switch to `Block/useBlocker` since react-router uses `useBlocker` instead of `Prompt/usePrompt`

* fix: rename RouteApi to getRouteApi and include useLoaderDeps

* feat: indicate `.lazy` suffix and mark deprecation suffixes being phased out

* fix: createRootRouteWithContext - `routeTree` into the `createRouter` instance

* fix: rootRouteWithContext - `routeTree` into the `createRouter` instance

* feat: `Function` keyword is redundant since its already nested under `Functions`

* feat: alphabetical sorting of functions

* feat: move `rootRouteWithContext` to the deprecated list

* feat: use backticks

* feat: alphabetical sorting of hooks
2024-02-27 11:55:10 -07:00
Boda
07bb8d2b16
docs: Update code-splitting.md (#1210) 2024-02-27 19:32:27 +01:00
Sean Cassiere
020edb5be7
examples: correct usage of the createLazyRoute function (#1230) 2024-02-27 19:31:41 +01:00
Sean Cassiere
bf26037663
docs: new doc page on the dx design decisions (#1225)
* chore: initial set up to display the new docs page

* docs: introduction to the dx doc

* docs: how its done to the dx doc

* docs: rework the intro for the dx doc

* docs: some gramatical fixes

* docs: checkpoint

* docs: two big parts are done

* docs: some cleanup

* docs: the spacing stuff

* docs: more cleanup

* docs: ...

* docs: code-based routing section

* docs: file-based routing section

* docs: rename doc to "Decisions on DX"

* docs: add a TLDR since people are people and wont read all of this
2024-02-26 04:20:46 -07:00