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

786 commits

Author SHA1 Message Date
Manuel Schiller
26101fc467 feat: beforeNavigate 2025-02-18 19:18:16 +01:00
Christopher Horobin
2dd5b95a6a
refactor: remove clientAfter (#3426)
* refactor: remove clientAfter

* perf(start): add middleware types interface to avoid structural comparison

* docs(start): update to include inferring context from server to client
2025-02-18 17:37:56 +01:00
Manuel Schiller
4ba035488e docs: react 18 or 19 in router installation 2025-02-15 14:28:27 +01:00
Tanner Linsley
22da8822f3 docs: more 2025-02-14 22:37:33 -07:00
Tanner Linsley
b6fed0a512 docs: add head management initial docs 2025-02-14 21:02:49 -07:00
Manuel Schiller
4c7caeba94
feat: replace <Meta /> by <HeadContent /> and add dedicated headScripts (#3439) 2025-02-14 23:19:01 +01:00
Tanner Linsley
2e74974c66
feat: static server functions (#3352)
* We're back baby!

fix: type: 'static', .type(type | () => type)

fix: allow customizing the serverFnStaticCache impl

fix: also allow for customizing the client side fetch, duh

* docs: static server function docs

* fix: remove unnecessary tuple option

* fix: createServerFnStaticCache import location

* fix: lockfile

* fix: types
2025-02-12 16:23:30 -07:00
Ben Fleming
1a6e3af75b
fix(router-generator): prevent route file being auto-formatted during updates (#3366) 2025-02-12 20:12:04 +01:00
Tanner Linsley
d870c68748
fix: allow custom scrollToTop selectors (#3398) 2025-02-11 16:42:37 -07:00
Leonardo Montini
0581857051
docs(router): more recommendations for route tree file opening unexpectedly on vscode (#3377) 2025-02-09 22:16:10 +01:00
Manuel Schiller
28963a2a4c docs: quickstart 2025-02-09 22:13:05 +01:00
Manuel Schiller
3b158d0ab0
feat(react-router): add shouldThrow option to useParams and useSearch (#3368) 2025-02-08 22:36:40 +01:00
Sean Cassiere
71784371c2
docs(router): warning on serialization with Base64 (#3342) 2025-02-06 15:30:51 +13:00
Pikachews
74afefee26
docs(start): fix createRouter call (#3290) 2025-02-01 00:10:59 +01:00
Jaga Santagostino
d90d517940
docs(router): add missing import in outlets.md snippet (#3292) 2025-02-01 00:10:43 +01:00
Tanner Linsley
ef79114f20 Merge branch 'main' of https://github.com/TanStack/router
# Conflicts:
#	docs/router/framework/react/guide/tanstack-start.md
#	docs/start/framework/react/build-from-scratch.md
2025-01-30 15:45:35 -07:00
Tanner Linsley
74f933aa58 examples: <ScrollRestoration/> => scrollRestoration: true 2025-01-30 15:44:57 -07:00
SeanCassiere
46634d8523
docs(router): fix broken syntax in the quick-start guide 2025-01-31 08:24:17 +13:00
Manuel Schiller
4f54803e89 docs: scrollRestoration default and replace deprecated <ScrollRestoration> 2025-01-30 19:44:16 +01:00
Manuel Schiller
e6aed4c457 docs(react-router): remove lazy from quickstart, auto code splitting instead 2025-01-30 19:28:15 +01:00
Tanner Linsley
4033f3a53d docs: fix server component statement 2025-01-30 09:39:39 -07:00
Tanner Linsley
044ff1c315 docs: better quick start 2025-01-29 22:56:41 -07:00
Tanner Linsley
970b649fcf fix: links from start to router 2025-01-29 22:17:33 -07:00
Tanner Linsley
2c35299f5d docs: Separate Start Docs 2025-01-29 21:47:58 -07:00
Manuel Schiller
fdaefc035d
fix: Fix scroll restoration (#3191)
* fix: scroll-restoration (especially on hydration mismatch)

* fix: more fixes

* fix canGoBack

* release: v1.97.25

* chore(root): upgrade `vitest` to `3.0.4` (#3257)

* chore(root): upgrade `nx` to `20.4.0` (#3259)

* fix(react-router): improve error handling for module loading failures in lazyRouteComponent (#3262)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix(start-server): remove debugging timeout (#3258)

* fix(start-plugin): invoke server implementation of createIsomorphicFn during SSR (#3268)

* feat(react-router): add `remountDeps` (#3269)

* fix: RELEASE_ALL

RELEASE_ALL

* examples: remove dep (#3270)

* release: v1.98.0

* checkpoint

* fix tests

* tests: fix

* fix: back to old onRendered

* fix: scroll-restoration (especially on hydration mismatch)

* fix: more fixes

* fix canGoBack

* checkpoint

* fix tests

* tests: fix

* fix: back to old onRendered

* Move utils to core

* fix: backwards compat ScrollRestoration

* fix: better versioning

* fix: reenable hash scrolling and window reset even without scroll restoration

* test(e2e): renable tests for router

* fix: backwards compat and docs

---------

Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com>
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: Flo <fpellet@ensc.fr>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel Grant <1670902+djgrant@users.noreply.github.com>
2025-01-29 14:50:54 -07:00
Manuel Schiller
34d03505ef
feat(react-router): add remountDeps (#3269) 2025-01-29 01:03:33 +01:00
Nicolas Beaussart
9386f15779
chore(examples): fix link for monorepo basic lazy loading (#3248) 2025-01-26 23:33:40 +01:00
Leonardo Montini
493a36476f
docs(router): improve data mutations libraries list readability (#3246) 2025-01-27 11:02:40 +13:00
Nicolas Beaussart
ed09f91a1e
docs(examples): add lazy loaded monorepo example (#3244)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-27 11:01:38 +13:00
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