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
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
Tanner Linsley
ab89c815b2 release: v1.17.4 v1.17.4 2024-02-25 22:45:18 +00:00
Manuel Schiller
d165151271
fix: avoid "Type instantiation is excessively deep and possibly infinite" error with useSearch(strict: false, experimental_returnIntersection: true) (#1224) 2024-02-25 23:44:16 +01:00
Tanner Linsley
d5d9895346 release: v1.17.3 v1.17.3 2024-02-25 22:25:57 +00:00
Christopher Horobin
4c62fbc615
fix: improve typescript performance for Link and useNavigate absolute paths (#1202)
- SplitPaths seems to be hugely expensive as it splits all paths
- UseNavigate was defaulting TFrom and TDefaultFrom to all paths but it was always a
  union of string | RoutePaths. Defaulting this to string and not constraining it to
  all paths limits the possibility over distributing over such a huge union and auto complete
  can be kept intact by using TDefaultFrom | RoutePaths<TRouteTree> | (string & {})
2024-02-25 23:23:42 +01:00
Tanner Linsley
99650d7646 release: v1.17.2 v1.17.2 2024-02-25 20:54:11 +00:00
Nikola Hristov
0fab06123b
fix: replace JSX.Element with React.ReactNode for children-like props (#1221) 2024-02-25 21:52:00 +01:00
Tanner Linsley
2954840663 release: v1.17.1 v1.17.1 2024-02-25 06:50:24 +00:00
Tanner Linsley
c1b2b673ab fix: devtools for SSR 2024-02-24 23:48:20 -07:00
Tanner Linsley
eb098cceff release: v1.17.0 v1.17.0 2024-02-25 03:59:24 +00:00
Aryan Deora
4875992599
feat(router-devtools): New UI Horizontal Upgrade (#1222)
* devtools init

* Add routes layout

* Transition to goober part 1

* Remove styled components

* Completed devtools

* Reset kitchen sink example
2024-02-24 20:58:16 -07:00
Joseph Harkins
240121ad22
docs: Fix navigation.md typo (#1200) 2024-02-23 23:20:59 +01:00
Rustam Musin
bcb97411ed
examples: Add a missing space in header of basic-react-query-file-based example (#1211) 2024-02-23 23:13:34 +01:00
Rustam Musin
188b2da35a
docs: Fix formatting in Data Loading guide (#1214) 2024-02-23 23:13:10 +01:00
Tanner Linsley
249e41e2af release: v1.16.6 v1.16.6 2024-02-18 13:11:04 +00:00
Manuel Schiller
a819b460d9
fix: revert removal of router.invalidate functionality (#1195) 2024-02-18 14:10:02 +01:00
Lachlan Collins
b5e85add20
ci: Use Nx Agents (#1192)
* ci: Use Nx Agents

* Update nx.json

* Fix prettier
2024-02-17 12:03:04 +11:00
Manuel Schiller
965485e255 chore: use createLazyFileRoute instead of lazyRouteComponent in file-based routing examples 2024-02-17 01:11:13 +01:00
Tanner Linsley
0d7722fbd4 release: v1.16.5 v1.16.5 2024-02-16 22:40:37 +00:00
Tanner Linsley
8c6de040c1 fix: better error, not found and redirect propagation 2024-02-16 15:37:48 -07:00
Tanner Linsley
1c6e50009b fix: external link rules of hooks 2024-02-16 15:37:48 -07:00
Tanner Linsley
47617caa97 release: v1.16.4 v1.16.4 2024-02-15 22:17:10 +00:00
Nikola Hristov
13a2bbe703
fix: Declare handleDragStart as optional param (#1190) 2024-02-15 23:15:16 +01:00
Aryan Nagbanshi
1a4a0a980a
docs: fix typo in quick-start.md (#1188)
spelling mistake on line no 216, should be "your" but it typed "you"
2024-02-15 23:14:05 +01:00
lunacrafts
e703b8d6df
docs: Remove .md suffix from guide links (#1189) 2024-02-15 23:13:43 +01:00