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
Andreas Adam
8b7d8e3af5
docs(start): update the getting-started guide's template (#2607)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-22 12:52:34 +13:00
Christopher Horobin
5d62c032f7
feat(react-router): implement standard schema into router core (#2602)
* feat: implement standard schema into router core

* docs: update docs to exclude valibot adapter

* chore

* tests: add tests for valibot

* chore: update docs and tests for arktype

* docs: update docs
2024-10-21 23:23:29 +02:00
Christoffer Berg Jensen
5cc2f9f1b0
docs: add to createLink documentation (#2506)
* Refactor `createLink` documentation

Revise the text and examples in the `createLink` guide for better clarity and completeness. Added sections for React Aria Components, Chakra UI, and MUI with detailed code examples to illustrate the usage of third-party libraries.

* Improve clarity in custom-link.md

* Replace createLink implementation for ButtonLink component

* Remove redundant explanation in MUI example of custom-link guide

* Rename and simplify component creation in CustomLink guide

* Rename and streamline custom link components

* Fix consistency in prop quoting and remove unused import

* Small consistency improvements between examples

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-10-21 10:07:10 +02:00
Manuel Schiller
30730a383d
feat(react-router): allow to explicitly check if a search prop is not set (#2592) 2024-10-20 02:35:42 +02:00
Nicolas Beaussart
45d598240f
docs: add monorepo with simple and react query example (#2479)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2024-10-18 23:51:23 +02:00
Manuel Schiller
eba70d5f57
feat(react-router): add method to selectively removed cached matches (#2575) 2024-10-18 23:41:37 +02:00
Manuel Schiller
ac7171c7e1
feat(react-router): execute search middlewares also upon navigation (#2581) 2024-10-18 22:47:18 +02:00
Manuel Schiller
8d56157b07
feat(react-router): add stripSearchParams middleware (#2579) 2024-10-18 22:33:18 +02:00
Dmitrii Kuzmin
14b0e1d629
docs(router): update nested routes comparison (#2548) 2024-10-17 11:20:25 +13:00
Manuel Schiller
93a62724a5
feat(react-router): allow to selectively invalidate matches (#2551) 2024-10-16 20:09:42 +02:00
Manuel Schiller
69b5728e8f
fix(eslint-plugin-router): add missing properties to rule create-route-property-order (#2557) 2024-10-16 20:09:30 +02:00
Manuel Schiller
2d0ff561cc
feat(react-router): added router option search.strict (#2552)
Configures how unknown search params (= not returned by any `validateSearch`) are treated.
2024-10-16 18:27:52 +02:00
Manuel Schiller
77fe390ec3
fix(start): correctly handle custom response status codes (#2553)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-16 00:30:17 +02:00
Manuel Schiller
86df9e77b0
feat(react-router): allow to retain all search params via retainSearchParams (#2549) 2024-10-15 20:42:46 +02:00
Leonardo Juriolli
d9a97e2693
docs: add missing import for retainSearchParams (#2545) 2024-10-15 01:03:30 +02:00
Manuel Schiller
62e4944186
feat(start): expose all customizable vite options (#2544) 2024-10-15 00:12:40 +02:00
Manuel Schiller
60b3f37e32
feat(react-router) add search middleware (#2521)
* feat(react-router) add search middleware

* add `retainSearchParams` middleware

* simplified types

* added docs
2024-10-14 20:34:35 +02:00
autofix-ci[bot]
f829d5afa5
ci: apply automated fixes 2024-10-13 06:07:42 +00:00
narangkay
78f3ea1c05
Remove trailing comma to make json happy (#2527) 2024-10-13 08:06:47 +02:00
Manuel Schiller
6b52c3689c docs: remove outdated section 2024-10-12 22:09:33 +02:00
Bardur
63562e8553
docs: add missing spaces for comments in the installation guide (#2502) 2024-10-10 14:16:22 +13:00
Manuel Schiller
a82bfa1e11
feat(router-generator): allow virtual file routes without file names (#2500) 2024-10-09 22:17:19 +02:00
Sean Cassiere
ac39caa8db
docs: less disruptive file-based routing guide regarding virtual routes (#2497) 2024-10-09 22:09:05 +13:00
Manuel Schiller
d16a5364bf
fix(react-router): only execute context when params or loader deps change (#2482)
* fix(react-router): only execute `context` when params or loader deps change

also do not pass search params into `context`, only `loaderDeps` (in analogy to `loader`)

* fix(eslint-plugin-router): update rule `create-route-property-order` to reflect `context` being dependent on `loaderDeps`

* fix(react-router): only execute `context` when necessary

* add tests
2024-10-08 19:24:18 +02:00
Christopher Horobin
f48dd37b35
feat: add linkOptions for re-usable props (#2486)
* feat: add `linkOptions` for re-usable props

* chore: change examples

* docs: add docs for `linkOptions`

* tests: add type tests for `linkOptions`

* chore: fix spelling

* chore: update docs and make `const`
2024-10-07 23:22:47 +02:00
J. G. Sebring
fd53d037de
docs(start): enable strictNullChecks (#2467) 2024-10-05 12:03:55 +13:00
Manuel Schiller
83bda81793
docs: correct API for route-masking (#2466) 2024-10-04 10:42:33 +02:00
Danya Olekh
8804d8b6f0
Examples: remove unnecessary <Suspense> (#2458)
Co-authored-by: Dan <Dan>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-03 17:38:54 +02:00
Dominic Garms
ed8cdfb63e
fix outdated navigation hint inside the docs (#2455) 2024-10-03 12:11:16 +02:00
Miro Rauhala
6691b77346
docs: fix pathless route link (#2444) 2024-10-01 20:34:37 +02:00
Miro Rauhala
286b25b918
docs: update pathless route wording (#2445)
Removing a dot in a sentence (maybe it should've been a comma?) and create a lead for the list of uses for a pathless route.
2024-10-01 20:34:13 +02:00
Miro Rauhala
090a9043a5
docs: use guarantee instead of guaranty (#2430) 2024-09-28 14:56:52 +02:00
Lalu Arman Rozika
a42deba776
docs(router): typo about the CLI in the file-based routing guide (#2424) 2024-09-27 16:34:43 +12:00
Christopher Horobin
61cd473b0e
docs(router): fix MUI button in "custom links" guide (#2420) 2024-09-27 08:20:43 +12:00
Henrique Kirch Heck
a2373db228
docs(examples): declare vinxi type references (#2423)
* fix: Fixed type errors with assets

* docs: added fix to getting started docs
2024-09-27 08:17:16 +12:00
Christopher Horobin
63c211cc91
docs: fix size of headings (#2411) 2024-09-24 21:16:06 +02:00
Christopher Horobin
808d90b599
docs: link custom link docs (#2410) 2024-09-24 21:03:18 +02:00
Christopher Horobin
f76bb37bb0
fix: allow activeProps to infer component props (#2347)
* fix: allow activeProps to infer component props

* test

* fix: make active props partial

* default props shall not override active/inactive props

* fix test

* docs: add createLink docs

* fix: make `search` optional when `to` or `from` not specified

* chore: add type tests fro `createLink`

* docs: update docs

* docs: update typo

* docs: add imports

* feat: add CreateLinkProps

* chore: fix build

---------

Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2024-09-24 20:47:38 +02:00
Manuel Schiller
65fb5a85ba
fix(start): rename deployment config to server (#2404) 2024-09-24 01:10:08 +02:00
Sean Cassiere
89f136784b
docs(router): broken gfm alert on "search params" guide (#2397) 2024-09-23 20:22:34 +12:00
Sean Cassiere
f36f92b459
docs(eslint-plugin-router): add content under empty headings (#2390) 2024-09-22 00:26:14 +12:00
Sean Cassiere
b52ef9dff8
docs(router): fixing broken links (#2389) 2024-09-21 22:56:42 +12:00
Sean Cassiere
7442812aaf
chore(examples): cleanup the deps for the start examples (#2388)
* chore(examples): cleanup the deps for the start examples

* docs(start): update the link to the start-counter example

* chore(e2e): remove lint and format scripts for the e2e sandboxes
2024-09-21 22:21:59 +12:00
Sean Cassiere
1a64daa5fb
docs(start): mention using the cli for hosting (#2383)
* docs(start): mention using the cli for hosting

* bit more updates
2024-09-20 10:25:34 +12:00
willenleal
230c460f4d
docs(start): better info on hosting (#2380)
* docs(start): clarify running builds locally

* docs: improve upon the base

---------

Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-09-20 07:57:17 +12:00
Sean Cassiere
e73a748b3f
docs(router): broken links on the file-based routing guide (#2381) 2024-09-20 07:05:22 +12:00
Sean Cassiere
5eff361103
docs(router): route-tree setup instructions for code-based routing (#2373) 2024-09-19 16:20:47 +12:00
Sean Cassiere
b2b2a2359b
docs(start): fix invalid syntax in the server-functions guide (#2372) 2024-09-19 15:17:23 +12:00
Sean Cassiere
8c2fda4d70
docs(start): guide on configuring path aliases (#2371)
* docs(start): add documentation on configuring path aliases

* chore: add the new doc into the `config.json` file

* docs: update verbiage
2024-09-19 14:27:09 +12:00
Manuel Schiller
1b2208735a
feat(eslint-plugin-router): add rule to ensure correct property order for createXXXRoute functions (#2362) 2024-09-18 22:23:00 +02:00