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

554 commits

Author SHA1 Message Date
Sean Cassiere
16761e250b
examples: fix up the "with-trpc-react-query" example (#2105)
* rename folder

* fixup the with-trpc-react-query example

* cleanups in the "with-trpc" example

* sync with "with-trpc"

* upgrade the "with-trpc" example, trpc package

* sync the spinner

* chore: display the examples on the website
2024-08-08 15:49:30 +12:00
Honza Hrubý
d5d151c847
feat(router-generate): add option to skip generating route manifest (#2100)
* feat(router-generate): add option to skip generating route manifest

* rename option

* document

* refactor: one last rename

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-08-08 11:58:29 +12:00
autofix-ci[bot]
a330681a20
ci: apply automated fixes 2024-08-07 17:04:40 +00:00
Tanner Linsley
46981ae7ce docs: update overview 2024-08-07 11:03:41 -06:00
autofix-ci[bot]
668b04d9e0
ci: apply automated fixes 2024-08-07 16:33:49 +00:00
Tanner Linsley
26f23496d4 docs: update overview 2024-08-07 10:28:53 -06:00
Sagar Dwivedi
fa1bd0d3bc
docs: add installation commands for all package managers (#2099)
* docs: add command to install using bun

* added support for all package manager

* added support for all package manager in quick-start.md
2024-08-07 20:30:11 +12:00
Sean Cassiere
2423d02ce2
docs: remove the invalid context and location arguments from being shown as "available" in the loaderDeps route method (#2091) 2024-08-06 20:18:17 +12:00
Sean Cassiere
84605c035c
feat(react-router): support for preload='viewport' (#2062)
* feat(react-router): expand the types to allow the preload setting of "viewport"

* feat(react-router): add the `useIntersectionObserver` and `useForwardedRef` hooks

* feat(react-router): add the configuration to use `preload='viewport'`

* chore(react-router): cleanup `console.log`

* chore(react-router): types I can be happy with

* refactor(react-router): make the `useIntersectionObserver` hook testing compatible

* test(react-router): testing for preload='viewport'

* test(react-router): move the `IntersectionObserver` mock into the utils

* docs: update the preloading guide

* docs: api reference

* chore: apply suggestions from code review
2024-08-01 10:48:06 +12:00
Rijk van Wel
cd21b290af
docs: missing comma in the Start Vinxi scripts (#2067)
* docs: fixed missing comma in Start Vinxi scripts

Also opted to change the `// ...` into a normal comment to avoid confusion.

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-01 10:43:10 +12:00
Loyale
12c10d523a
docs: fix a grammar error in the "code-splitting" guide (#2064) 2024-07-31 23:10:40 +12:00
Manuel Schiller
08bbb333c2 docs: fix typos 2024-07-30 22:20:26 +02:00
Manuel Schiller
f0794aeea7
docs: link to useRouterState 2024-07-30 20:35:03 +02:00
Manuel Schiller
70148fc2ef
fix formatting in useRouterHook.md 2024-07-30 20:34:42 +02:00
Manuel Schiller
6bbdc7cbee
docs: warn that router.state is not reactive in the useRouter doc 2024-07-30 20:32:50 +02:00
Manuel Schiller
60c346baf0
docs: fix useLoaderDepsHook doc 2024-07-30 20:29:59 +02:00
Manuel Schiller
f5e011cb8f
Update useLoaderDataHook.md 2024-07-30 20:22:57 +02:00
Sean Cassiere
03b05999c5
docs: cleanup the Reference API page having the hooks being suffixed with (.md) (#2038) 2024-07-27 14:39:58 +12:00
Tom Ballinger
02f934c643
docs: Warn against DOM-rendering elements in Wrap and InnerWrap (#2017)
* Warn against DOM-rendering elements in Wrap and InnerWrap

* update docs

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-25 20:20:15 +02:00
Tom Ballinger
789c4660ef
docs: add more installation details to getting started with TanStack Start guide (#2016)
* Add details to getting started with Start.

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-24 18:22:15 +12:00
Baqir Khan
2c5452e8fa
docs: typos in the "data loading" and "deferred data loading" guides (#2015)
* Fix minor typo in data loading docs

* Fix typo in deferred data loading
2024-07-24 13:22:20 +12:00
dli9431
7087c4bb01
docs: typo in an import statement within the code-splitting guide (#2005)
typo on import
2024-07-22 19:51:48 +12:00
Sean Cassiere
b5eabe19f5
docs: native markdown relative hyperlinks (#1998)
* docs: reference docs

* docs: guides

* docs: top-level

* docs: missed the route-trees

* docs: fixing routing-concepts
2024-07-20 18:23:45 +12:00
Sean Cassiere
7c0133b74e
docs: remove component as a supported throw area for the notFound utility (#1997) 2024-07-20 17:15:28 +12:00
Tanner Linsley
3003d986c6
fix(router): fixed a lot of context related issues (#1907) 2024-07-16 19:34:14 +02:00
Sean Cassiere
b1d86cc709
docs: add verbiage on the "router-context" guide about invalidating the router context for external state changes (#1954) 2024-07-13 23:30:29 +12:00
Manuel Schiller
bacd6b7f22
feat: allow useMatch to not throw if match was not found (#1738)
in this case, `matchRoute` will return undefined
2024-07-12 22:09:43 +02:00
Casey Johnson
0b5bff5942
docs: update the list of parameters available in the loader in the "data loading" guide (#1945)
* fix: loader parameters in data loading documentation

* Update docs/framework/react/guide/data-loading.md

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-07-12 09:48:30 +12:00
Sean Cassiere
9880bb8bb1
docs: use gfm alerts in the documentation (#1924)
* docs: gfm alerts on the deprecated apis

* docs: gfm alerts in the api reference

* docs: gfm alerts in framework/react

* docs: gfm alerts in framework/react/guide

* docs: more gfm alerts in the api reference

* docs: update to the decisions on dx doc
2024-07-10 11:46:21 +12:00
Igor Adrov
08d3e61b4c
docs: Fix typo in migrate-from-react-router.md (#1914) 2024-07-07 20:20:05 +02:00
Sean Cassiere
37b74fa143
docs: add links to the github examples on the file-based routing guide for each supported bundler (#1903)
* docs: grammatical errors

* docs: add links to the quickstart examples
2024-07-06 11:29:05 +12:00
Corbin Crutchley
780b778137
docs: add quickstart guide for TanStack Start (#1857)
* docs: add quickstart guide for TanStack Start

* docs: add initial documentation for createServerFn (#1858)

* docs: add initial documentation for createServerFn

* chore: fix broken code sample

* docs(start): more explanation on the mental model of server functions (#1859)

* grammatical error in what are server functions?

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>

* docs: address feedback for Start Guide

* chore: fix PNPM file

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-07-05 19:32:29 +02:00
Honza Hrubý
bcc316eb1a
fix(router-plugin): add webpack support and resolve rspack code-splitting blockers (#1864)
* basic webpack example

* setup webpack plugin

* use webpack plugin

* add missing webpack config

* disable code split

* fix docs

* add watcher

* code split config

* documentation

* lazy load chokidar

* chore(router-plugin): set the webpack peerDeps

* feat(router-plugin): get code-splitting working for webpack

* refactor(router-plugin): better detection of the build mode

* chore(router-plugin): remove this console.log

* fix(router-plugin): remove the blockers for codesplitting with rspack

* chore(router-plugin): remove the unstable flags for webpack and rspack

* docs(router-plugin): remove the unsupported warnings for `experimental.enableCodeSplitting` for webpack and rspack

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-07-03 19:42:45 +12:00
Sean Cassiere
9040999892
style: prettier on the docs (#1872) 2024-07-02 12:16:28 +12:00
friendlywavingrobot
994453b436
docs: remove the unnecessary encode and decode URIComponent calls in the zipson example of the "custom search param serialization" guide (#1870) 2024-07-02 12:07:27 +12:00
Tanner Linsley
23614fa79a fix: add react-router-with-query experimental package 2024-07-01 00:15:41 -06:00
Sean Cassiere
2d28367b84
docs: add a diagram on the "custom search param serialization" guide on the need for idempotency (#1860)
* docs: add the image

* docs: update the page with the diagram
2024-06-29 23:30:30 +12:00
Christopher Horobin
1d733f6cc6
feat(react-router): params.parse and params.stringify instead of parseParams and stringifyParams (#1826) 2024-06-28 18:34:49 +02:00
Tanner Linsley
fd692cf77d
feat: New Serialization Paradigm (#1824)
* checkpoint

* fix: config

* checkpoint

* testing fixes (#1679)

* examples: init trellaux

* feat: Better serialization/streaming, RSC proof of concept

* fixup server-handler

* fix: update deps and lock

* fix: remove rscFrom

* fix: remove useLoaderDataTransform

* fix: min react version

* chore: lockfile

* style: prettier fail

* chore: swap expect-error for ignore

* chore(react-router): try coercing the types

* chore: put this back in

* fix: some tests

* remove conditions

* fix tests

* update lockfile

* fix: refactor dehydrated data

* Update docs

* fix: remove unused deferred logic

* fix port

* nevermind

* fix: remove rebase garbage

* disable playwright for a hot minute

* oops, actually disable it now

* fix: prettier formatting

* fix: do not ignore app.config files

---------

Co-authored-by: Nikhil Saraf <nsaraf98@gmail.com>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-06-28 09:45:01 -06:00
Christopher Horobin
f970023cd6
docs: add TS performance guidance with prefetching (#1781)
* docs: add TS performance guidance with prefetching

* chore: make suggestions
2024-06-22 10:38:42 +12:00
Manuel Schiller
b1213eb57d
feat: allow to ignore blocker in navigate and <Link> (#1797) 2024-06-21 19:49:33 +02:00
Sean Cassiere
a9874aad26
fix(router-plugin): add the rspack/rsbuild handler for file-based routing (#1794)
* feat: setup the starter for an rspack integration

* refactor(router-plugin): compose the plugins toghether

* feat(router-plugin): initial export for rspack

* docs(examples): add the quickstart-file-based pages in

* feat(router-plugin): generator should generate the route-tree on startup

* feat(examples): use the route-tree

* feat(router-plugin): router-generator working

* feat(router-plugin): rspack support only for the generator

* refactor(router-plugin): make the rspack exports a bit cleaner

* chore(router-plugin): jsdocs for the vite plugin

* docs(router-plugin): update with references and mentions to rspack/rsbuild

* style(router-plugin): eslint import ordering 😭
2024-06-21 11:51:08 +12:00
Sean Cassiere
ee48ae2aa1
docs: update the documentation on the @tanstack/router-plugin package (#1793)
* docs: update the file-based routing guide

* docs: update the quick-start guide

* docs: update the migrate from react-location guide

* docs: more updates to the migration from react-location guide

* docs: update the code-splitting guide

* docs: update the routing concepts guide

* docs: broken link on the code-splitting guide
2024-06-20 11:24:28 +12:00
Sean Cassiere
13a0cc0631
docs: update the custom search param serialization guide (#1759)
* docs: update the custom search param serialization guide

* docs: move the image a bit further down

* docs: remove the image
2024-06-19 21:32:57 +12:00
Sean Cassiere
92c6c2b1ff
docs: add documentation on the experimental.enableCodeSplitting feature (#1761)
* docs: add the content to the guide

* docs: add a link to the guide
2024-06-17 21:39:55 +12:00
SeanCassiere
e908be4076
docs: moving the actual file-based routing specific stuff not related to code-splitting to the right file 2024-06-17 20:58:28 +12:00
Eliav2
a64513860b
docs: typo in the navigation blocking guide (#1754) 2024-06-15 10:43:31 +12:00
Daniel Guldberg Aaes
30ae443f14
docs: fix some mistakes in the example of the SSR guide (#1748)
The current docs has a conflicts with a local declaration of 'createRouter'. and the import for the routeTree.gen is missing a ./
2024-06-14 22:07:29 +12:00
Manuel Schiller
be3a410e46
docs: replace Meta with Static Data 2024-06-11 22:04:10 +02:00
reihwald
a1fb6417b8
feat(router-devtools): add shadowDOMTarget option to TanStackRouterDevtools and TanStackRouterDevtoolsPanel (#1709) (#1720)
* feat: add shadowDOMTarget option to TanStackRouterDevtools and TanStackRouterDevtoolsPanel (#1709)

* feat: add documentation for shadowDOMTarget (#1709)

---------

Co-authored-by: Liam Reihwald <liam.reihwald@worldline.com>
2024-06-11 17:52:08 +12:00