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

1,257 commits

Author SHA1 Message Date
Jack Herrington
6c9c419950
docs(start): small fixes to clean up issues in documentation (#3241) 2025-01-27 09:02:18 +13:00
Ivan Maksimovic
58571eb28d
docs(router): update quickstart guide on when routeTree generation occurs(#3239)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-01-27 09:02:02 +13:00
autofix-ci[bot]
62489c4d1c
ci: apply automated fixes 2025-01-25 03:51:08 +00:00
Ryan Soderberg
3f44ab61d3
Updated the docs to include info on dynamic prerendering (#3224) 2025-01-24 20:50:14 -07:00
Jack Herrington
bebea817ed
docst(start): Update build-from-scratch.md (#3228) 2025-01-25 02:52:01 +01:00
Tanner Linsley
bb1a14ae82
fix: router stream injection (#3216)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-24 23:47:41 +01:00
fwio
b16c2c1dde
docs(preloading): correct effect snippets (#3204) 2025-01-21 19:48:16 +01:00
Tanner Linsley
2d182c7441 fix: replace vinxi/https exports with start/server exports 2025-01-20 17:33:42 -07:00
autofix-ci[bot]
f21186e4c5
ci: apply automated fixes 2025-01-20 18:45:04 +00:00
Swizec Teller
27f3c4eede
docs: Update build-from-scratch.md (#3197) 2025-01-20 19:44:09 +01:00
Mark Vu
d8d6bcd886
docs: correct typo (#3198) 2025-01-20 19:43:14 +01:00
Andrei
80eab58051
docs(router): fix docs related to parsed state (#3194)
* docs(router): fix docs related to parsed state

* docs(router): clarify usage of history state interface

* ci: apply automated fixes

* mention file where history state should be extended

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-19 15:53:36 +01:00
John
bea54d1f4b
docs(router): require the use of React's createRoot function (#3151)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-01-14 10:50:40 +13:00
Lukas Frey
a7fece12f6
docs(start): fix FormData server functions examples (#3062)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-01-14 10:37:01 +13:00
Mark Vu
9bdaf1cb84
docs(migrate): correct typo in migration documentation (#3153) 2025-01-13 21:41:20 +01:00
pierluigigiancola
9c9d0f413a
docs(router): missing character in code-splitting guide (#3143) 2025-01-12 14:25:20 +13:00
Andrei
814ebfe0d2
fix(react-router): separate internal and user provided history state (#3119) 2025-01-10 14:26:50 +13:00
Philippe Serhal
9f028a5dc1
docs: fix dead link and typo in guide (#3136)
Typo introduced in https://github.com/TanStack/router/pull/2963.
2025-01-10 00:28:58 +01:00
Jeff Hertzler
c99a4be036
docs: Fix notFound import (#3133) 2025-01-09 22:32:47 +01:00
Muthu Kumar
e59268766c
docs: Typo issue - getParent Does not Exists in type RouteOptions (#3131) 2025-01-09 22:31:38 +01:00
Mark Vu
07fc9412fc
docs: remove duplicate word (#3125)
* docs: remove duplicate word

* docs: correct typo in learn-the-basics.md
2025-01-08 21:35:16 +01:00
Tanner Linsley
93c4dc6464
Update comparison.md 2025-01-08 09:44:20 -07:00
Tom Rehnström
366848eb0e
feat(react-router): add useCanGoBack (#3017)
also fixes that history does not notify twice for certain actions
2025-01-03 21:09:58 +01:00
Billy Jacoby
c5d141b5a5
docs: learn-the-basics.md (#3102) 2025-01-03 20:17:16 +01:00
hasnum
6b64e125cf
docs: remove unnecessary punctuation (#3105) 2025-01-03 20:17:00 +01:00
Christopher Horobin
446f033755
feat: allow arrays for linkOptions and add ValidateLinkOptions (#3098)
* feat: allow arrays for `linkOptions` and add `ValidateLinkOptions`

* chore: fix build
2025-01-02 23:08:46 +01:00
Manuel Schiller
a0b022ad3e
feat(react-router): allow to await router.invalidate in case of SWR (#3094) 2025-01-01 20:06:52 +01:00
Tanner Linsley
ce0982d4f0
Update comparison.md 2024-12-30 21:46:44 -07:00
Tanner Linsley
9457994eaa docs: update comparison 2024-12-30 20:52:31 -07:00
Dave.dev
07e5f93f92
docsL cleanup 'Handling error' sample code in data-loading.md (#3073)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-29 23:05:17 +13:00
Tanner Linsley
5cb82207c4 Merge branch 'main' of https://github.com/TanStack/router 2024-12-27 10:35:54 -07:00
Tanner Linsley
7c20138792 docs: Better getting started flow 2024-12-27 10:35:50 -07:00
Matt Peck
16a112fbc9
docs: Add install line to Manual Setup code block on Quick Start page (#3072) 2024-12-26 18:58:05 +01:00
Minh-Phuc Tran
20cb387523
docs(start): notFound should be imported from Router instead of Start (#3065) 2024-12-26 12:23:11 +01:00
Tanner Linsley
3808c6e7ad update docs 2024-12-24 12:15:11 -07:00
Tanner Linsley
8ac15ca190 Add Netlify callouts 2024-12-24 10:49:18 -07:00
Joshua Knauber
72b7c82ac5
refactor(react-router): expose scrollBehavior on the ScrollRestoration component (#3053)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-12-22 12:49:06 +13:00
Arnaud Kleinpeter
6d810d7f58
docs: Minor typo in middleware.md (#3042) 2024-12-20 11:53:13 +01:00
AlexisPin
38702a8994
docs: minor typo in code-based-routing.md (#3043) 2024-12-19 18:03:08 +01:00
autofix-ci[bot]
253284a196
ci: apply automated fixes 2024-12-18 21:20:21 +00:00
Youssef Benlemlih
8a09e261bf
docs: add custom link example for mantine (#3033) 2024-12-18 22:19:11 +01:00
Anton Kuznetsov
96a7beebd1
docs: Update file-based-routing.md (#3026) 2024-12-17 01:46:59 +01:00
akhmadshin
02a4957b64
feat(react-router): allow to preload route chunk (#3016)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2024-12-16 23:42:34 +01:00
Chris Hudson
fb016b8115
docs: clarify server functions cannot be called from Api Routes; capitalize API Routes as they are a noun and consistency with API Routes page. (#3021) 2024-12-16 23:26:06 +01:00
reihwald
f063b49b41
docs: Slightly improve navigation-blocking.md to avoid confusion (#3015) 2024-12-15 14:42:24 +01:00
Manuel Schiller
437fb7457a docs(react-router): fix blocker doc 2024-12-15 11:21:21 +01:00
Tom Rehnström
f420670bf2
feat(react-router): update useBlocker hook to provide current and next location when conditionally blocking (#1790)
* chore: clean up changes

* feat: clean up work and address feedback

* feat: add backwards compat

* ci: apply automated fixes

* feat: give history action to subscribers via notify

* fix: provide go index to history subscribers

* docs: updated docs accourding to feedback

* fix: changed valid notify call

* rename to `type`

* remove non existing `pushstate`event

* cleanup

* typesafe API for shouldBlockFn

* feat: added blocking state to resolver and updated examples

* docs: updated useBlocker and navigation-blocking docs

* test: added type tests to blocker and changed type implementation of blocker

* test: added better unit tests for useBlocker hook

* test: added e2e tests for blocker and legacy blocker

* wip: stash files before merge

* fix: unstashed e2e file after merge

* fix lockfile

* docs

* typesafety for `<Block>`

* always return resolver to not break backwards compatibility

* fix: removed zod from navigation blocking example to fix build problem

* chore: update lock file

* finishing touches

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2024-12-15 10:32:16 +01:00
Josh Slate
92147140c8
feat(react-router): implement hash change "Scroll Into View" option (#2996)
* feat: implement hash change scrollIntoView option

* e2e tests for hash change scroll behavior

* update e2e tests to use data-testId

* address feedback

* remove accidental change to package.json

* add anchor link to example navigation

* ci: apply automated fixes

* handle when location transitions without commitLocation running

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-14 08:58:03 +01:00
Josh Kelley
e5f7a8cc16
Update React Router 7 bundle size (#3006)
As of React Router 7, [everything is in the `react-router` package](https://reactrouter.com/upgrading/v6#upgrade-to-v7), and `react-router-dom` just re-exports `react-router` for compatibility.
2024-12-13 21:06:08 +01:00
Manuel Schiller
5ad95cf3f7
feat(react-router): allow to redirect to external targets, add reloadDocument option (#3004)
* feat(react-router): allow to redirect to external targets, add `reloadDocument` option

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-13 12:29:33 +01:00