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

410 commits

Author SHA1 Message Date
Egor Fedorov
31a0398b4f
docs: fix Route variable in path-params example (#1103) 2024-01-30 19:14:30 +01:00
Tanner Linsley
81d8dcdd62 docs: useChildMatches docs 2024-01-29 09:48:48 -07:00
Sean Cassiere
47e63aa036
docs: include the not found errors guide in the documentation config (#1097) 2024-01-28 15:59:45 -07:00
Manuel Schiller
c70b10ef2f
fix: deprecate rootRouteWithContext in favor of createRootRouteWithContext (#1098) 2024-01-28 15:58:26 -07:00
Manuel Schiller
b04458135e
fix: MatchRoute now uses same props as useMatchRoute (#1096)
do not require to specify path params
2024-01-28 22:04:13 +01:00
Corey Sewell
2ae37a1ea3
docs: Add createLazyFileRoute imports to quickstart (#1095) 2024-01-28 14:01:48 -07:00
Manuel Schiller
d02bc45bd6 docs: update to latest API 2024-01-28 00:46:31 +01:00
gilbert
dcfd9d7246
feat: new not found APIs (#1048)
* feat: add `notFound`, boundary, and support for routes

* feat: add global not found

* refactor: clean up throw global not found route

* feat: reset not founds on page navigation

* fix: fix duplicate throw global not found

* feat: rework global not found handling and add not-found-ssr example

* feat: update not found ssr example

* fix: fix type in not-found.tsx

* feat: add way to statically render a global not found page

* feat: remove flicker from notFound with SSR

* feat: remove <GlobalNotFound> server api

* feat: add file-based routing and codesplitting for not found component

* feat: add option to trigger not found on specific route

* docs: write docs for `notFound` and `NotFoundError`

* docs: document Route.notFound(opts)

* feat: add deprecation warnings to notFoundRoute

* fix: clean up a few things that went awry during rebase

* fix: fix react-router-server build

* feat: add not-found apis to basic-file-based example

* feat: update basic-ssr-streaming-file-based example to use new not-found apis

* chore: clean up a few things

* docs: write guides for new not found api

* docs: add api documentation for `not-found.tsx`

* feat: add notFoundComponent to lazy loading

* docs: deprecate NotFoundRoute and link to new apis

* fix: remove `.notFoundComponent` suffix in file based routing

* feat: make `route` option of typesafe and compatible with `getRouteApi`
2024-01-27 09:12:54 -07:00
Nirjhor Nath
6d54fab6c8
feat: Add data transformer API (#1059) 2024-01-27 00:05:18 +01:00
Montasar Jarraya
acb75e1499
docs: rename createRouteApiFunction.md (#1085) 2024-01-26 10:30:58 -07:00
Tanner Linsley
3e2d936e2e fix: Normalize searchStr from parsed search
Fixes #1003
2024-01-25 23:03:59 -07:00
GJ Tiquia
8490d553ba
docs: Update history-types.md (#1082)
* docs: Update history-types.md

* docs: update history-types.md
2024-01-25 21:43:10 -07:00
GJ Tiquia
f6f5af8f7c
docs: added missing imports in quick-start.md (#1073) 2024-01-25 21:41:34 -07:00
Lachlan Collins
77955ab586
docs: Re-organise for new docs layout (#1081) 2024-01-26 09:43:15 +11:00
Tanner Linsley
957064d8ce fix: Use staticData instead of reserved static keyword 2024-01-24 21:41:26 -07:00
Tanner Linsley
3ad36cd3ad feat: Static Route Data 2024-01-24 21:30:25 -07:00
Tanner Linsley
1fb4082c07 feat: createLazyRoute 2024-01-24 20:41:50 -07:00
Tanner Linsley
0660d9d239 fix: tests 2024-01-24 17:02:15 -07:00
Tanner Linsley
709fc749f9 fix: more refactoring and deprecations 2024-01-24 14:48:51 -07:00
Tanner Linsley
fcc278ffc8 feat: New code-splitting patterns + deprecations
- Deprecated class constructor APIs in favor of new `create[Class]` functions
- Added new code-splitting paradigm that produces less code, preloads potentially faster and plays nicely with SSR and file-based routing
- Updated all examples to use new code splitting patterns and new suggested APIs
2024-01-24 13:01:48 -07:00
Aquib
d3b1fa582e
docs: Update navigation.md - fix typo (#1074) 2024-01-24 20:02:41 +01:00
Ben Patton
b615359f37
docs: added basic migrate from react router checklist (#1072) 2024-01-23 19:59:50 -07:00
Manuel Schiller
cfd49f7185 docs: correctly explain how to create root route with context 2024-01-23 19:08:49 +01:00
Sean Cassiere
e69c394cb9
docs: expand the documentation on authentication routes with react context (#1055)
* docs: authenicated routes using React hooks

* docs: include line to indicate it can be used with layout routes

* docs: include parent as well

* docs: add an example showcasing only authentication

* chore: add the authenticated routes example to the  config

* docs: include a link to the example
2024-01-21 20:09:46 -07:00
Manuel Schiller
879234b594 fix: fix typing of useRouteMatch as well as fix bug when matching route with path param (#1032) 2024-01-20 07:12:13 +01:00
Cory House
cbe7130351
docs: Update search-params.md (#1034) 2024-01-20 07:07:52 +01:00
gilbert
bae614f67a
feat: Add client-side handling for server-side errors using errorComponent and wrapInSuspense: true (#1001) 2024-01-19 19:54:09 +01:00
Tanner Linsley
2dc5e3db96 feat: Add "disableTypes" option to route generation for JS users 2024-01-18 15:28:31 -07:00
Aloys
e5d2626c0c
docs: Fix broken URL in the docs (file-base-routing.md) (#1014) 2024-01-18 18:09:46 +01:00
Tanner Linsley
19d7457d93 fix: no unnecessary promise delay on awaited, examples: update vinxi examples 2024-01-17 14:41:08 -07:00
Manuel Schiller
05ba0f8b31 docs: correctly describe type union 2024-01-17 17:44:52 +01:00
harry
42a6d61e17
docs: In the example, the "Blocker" component name is corrected to "Block" (#1006) 2024-01-16 20:14:53 -07:00
Tanner Linsley
9d38d0e634 docs: update 2024-01-16 17:04:57 -07:00
Tanner Linsley
0802aca24b docs: vinxi example 2024-01-16 17:03:58 -07:00
Tanner Linsley
b2055904ac examples: add vinxi ssr streaming example 2024-01-16 16:10:15 -07:00
Tanner Linsley
5a20db117e docs: update quick-start 2024-01-16 12:07:43 -07:00
Tanner Linsley
491bf5e445 docs: rewrite to prefer file-based routing 2024-01-16 11:49:52 -07:00
SilentSwaps
6d7a5b3999
docs: add type assertion (#991)
Type assertion so it will at least compile.
2024-01-14 20:32:46 +01:00
Manuel Schiller
60c55b9a94
docs: remove example of returning a redirect (#981) 2024-01-12 22:39:05 +01:00
redbar0n
30d6a8be74
docs: Update router-cli.md: Fix MyComponent typos (#974) 2024-01-12 22:02:17 +01:00
Tanner Linsley
a0980b8015 docs: update 2024-01-11 10:09:39 -07:00
Manuel Schiller
048952c38d docs: fix typos 2024-01-10 23:10:57 +01:00
Léo Tuil
32330663ba
docs: Update links in router-vite-plugin.md (#959) 2024-01-10 22:52:55 +01:00
Manuel Schiller
a2a7d7e538
docs: update docs and examples to use route.fullPath instead of route.id as from (#928) 2024-01-10 14:52:04 -07:00
Tanner Linsley
0ad7e4be4b docs: more experimental codesplitting docs 2024-01-10 00:25:53 -07:00
Tanner Linsley
8a5ab0a1cf feat: Add @tanstack/router-vite-plugin. Fixes TSR generate now nested routes properly. Also fixes unstable_codeSplitting issues. 2024-01-08 16:01:00 -07:00
Alessandro
3bfa79d853
Update data-loading.md (#943)
Fix markdown typo
2024-01-07 03:45:14 +01:00
Tanner Linsley
4a0354e2c3 docs: route cli docs 2024-01-05 22:20:33 -07:00
Tanner Linsley
576f16cbf7 docs: Router CLI docs 2024-01-05 13:12:27 -07:00
Manuel Schiller
e2e07537e3
chore: add missing doc link (#926) 2024-01-04 22:06:11 +01:00