0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-18 19:34:24 +00:00
Commit graph

6,483 commits

Author SHA1 Message Date
Tanner Linsley
3f30909e94 release: v1.47.5 v1.47.5 2024-08-13 23:24:08 +00:00
Manuel Schiller
e8866c516b
fix(react-router): fix minPendingMs (#2124)
fixes #2106

this reverts https://github.com/TanStack/router/pull/2075 since the effect was not executed properly.
To avoid the infinite loop of #2053, the `minPendingPromise` is read via `router.getState` since `match` property was not up-to-date
2024-08-14 01:22:40 +02:00
Tanner Linsley
36e4780730 release: v1.47.4 v1.47.4 2024-08-13 20:18:19 +00:00
Manuel Schiller
bb416645ba
fix(react-router): do not remove route groups from lazy file route ids (#2123)
this removal was introduced by #1253, however in the meantime the generator was modified
2024-08-13 22:16:42 +02:00
Sean Cassiere
a1ad375bd6
docs: move the trpc examples to file-based routing (#2121)
* switch the "with-trpc" example over to vinxi

* move the "with-trpc" example over to file-based routing

* switch the "with-trpc-react-query" over to file-based routing

* cleanup on the "with-trpc" example

* cleanup on the "with-trpc-react-query" example

* remove the manifest generation block flag on the "with-trpc-react-query" example

* remove the manifest generation block flag on the "with-trpc-react" example
2024-08-13 18:58:00 +12:00
Tanner Linsley
a6819bf934 release: v1.47.3 v1.47.3 2024-08-12 06:16:57 +00:00
Sean Cassiere
9dbbbfe3f1
fix(start): using TextEncoder to encode the chunks when using renderToReadableStream (#2117)
* using the a TextEncoder

* trying without the changes from #1822

* revert that last commit

* use TextDecoder on the client-side of the stream

* undo

* temporary disable

* re-enable

* style: eslint warnings

* log error events

* gitignore wrangler outputs
2024-08-12 18:13:50 +12:00
Tanner Linsley
eb4f88267d release: v1.47.2 v1.47.2 2024-08-10 11:04:04 +00:00
Kenta Iwasaki
fbf0b8fd1e
fix(start): include all available nitro presets (#2115) 2024-08-10 22:59:18 +12:00
Kenta Iwasaki
f4f42500f1
fix(start): use appropriate stream transform for renderToReadableStream (#2116)
transformStreamWithRouter was previously being used when the runtime is
detected to support web streams (i.e. ReadableStream).

transformReadableStreamWithRouter should be used instead inside of
defaultStreamHandler.
2024-08-10 22:59:06 +12:00
Tanner Linsley
6f66923791 release: v1.47.1 v1.47.1 2024-08-09 11:38:37 +00:00
Mikkel Thorbjørn Andersen
ca401e600f
fix(react-router): ResolvedSuspense to always use React.Suspense never the SafeFragment (#1822)
* Added test to prove rerender test for hooks is not possible with tanstack router wtih the current state.

* prettier

* Changed implementation to prove it will work

* Navigating from kitchensink app dashboard/invoices to dashboard/users would end up redirecting back to  dashboard/invoices if using this.state.resolvedLocation

* revert and fix navigate by adding a "to" directly in the useEffect since without it tanstack router will navigate back

* cleanup

* ensure lock file was not changed

* now using lock from main

* revert change

* revert fix for search

* fixed formatting

* ci: apply automated fixes

* chore: do not use memoryHistory

---------

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-08-09 13:35:11 +02:00
SeanCassiere
fa8f93a960
examples: fix the devtools alignment in the "with-trpc-react-query" example 2024-08-08 15:56:51 +12:00
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
Tanner Linsley
fada5170c6 release: v1.47.0 v1.47.0 2024-08-08 00:01:37 +00: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
Tanner Linsley
08b85242f8 release: v1.46.9 v1.46.9 2024-08-07 17:18:04 +00:00
Tanner Linsley
b3b57203cf
fix: better non-start ssr handlers (#2093)
* fix: better non-Start SSR handlers

* update lockfile

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-07 11:14:20 -06: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
Tanner Linsley
462e7df867 release: v1.46.8 v1.46.8 2024-08-07 07:32:10 +00:00
Sean Cassiere
703ce9e357
fix(react-router): set a default transformer during router instantiation when not supplied (#2097)
* test: check for the transformer functions

* fix(react-router): set a default transformer during router instantiation

* chore: remove the `.only` call during tests
2024-08-07 19:30:47 +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
Tanner Linsley
43d92007d0 release: v1.46.7 v1.46.7 2024-08-06 08:08:17 +00:00
Sean Cassiere
cc4da69c15
fix(react-router): use routeId to stabilize the memoized route component to prevent from remounting when on the same route (#2090)
* fix(react-router): stabilize the memoized route component remounting when on the same route by using `routeId` as the key instead of `matchId`

* test: add a check to make sure we do not regress this change in the future

* chore: clean up the weird import that was bothering eslint
2024-08-06 20:06:04 +12:00
Tanner Linsley
6ae3c7016a release: v1.46.6 v1.46.6 2024-08-06 00:14:56 +00:00
Sean Cassiere
c3cfd953b8
fix(react-router): activeProps and inactiveProps on Link to accept data-attributes (#2088)
* types: `activeProps` and `inactiveProps` on `Link` to accept data-attributes

* test: cleanup imports
2024-08-06 12:13:57 +12:00
renovate[bot]
8a994d2cdf
chore(deps): update all non-major dependencies (#2083)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-05 03:22:28 +00:00
Tanner Linsley
4d465a87ed release: v1.46.5 v1.46.5 2024-08-04 00:17:30 +00:00
Leonardo Montini
00fb02c8a1
fix(router-devtools): align right masked path (#2080) 2024-08-04 02:13:45 +02:00
Tanner Linsley
7d6ebcf5f0 release: v1.46.4 v1.46.4 2024-08-03 09:59:22 +00:00
Honza Hrubý
dc12274fd8
fix(react-router): enforcing the types for staticData in on the createFileRoute function (#2074)
Resolves #1978
2024-08-03 21:55:48 +12:00
Tanner Linsley
18e89603db release: v1.46.3 v1.46.3 2024-08-02 16:22:33 +00:00
Manuel Schiller
07190f9c25
fix(react-router): update match in effect instead of during render (#2075)
* fix(react-router): update match in effect instead of during render

fixes #2031
fixes #2053
2024-08-02 18:21:02 +02:00
Tanner Linsley
1962e7d5df release: v1.46.2 v1.46.2 2024-08-02 05:03:43 +00:00
Sean Cassiere
af354295b1
refactor(react-router): better API surface for the useIntersectionObserver hook (#2073)
The previous interface for the useIntersectionObserver hook didn't account for the fact that the two important parts of the hook was to accept a `ref` and a `callback`. This also lets the `intersectionObserverOptions` and `options` truly be _optional_.
2024-08-02 17:02:40 +12:00
Tanner Linsley
159d81cd33 release: v1.46.1 v1.46.1 2024-08-02 00:26:22 +00:00
Tom Ballinger
19838f8959
fix(react-router-with-query): accept queryKeyHashFn from _experimental_beforeQuery and add Convex DB example (#1988)
* Add a Convex database trellaux example

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-02 12:21:47 +12:00
Sean Cassiere
84f4076cd9
chore: cleanup the old with-trpc and with-framer-motion examples (#2068)
* chore: fixup the example

* chore: rename from `wip-with-framer-motion` to `with-framer-motion`

* chore: remove the `wip-with-bling` example

* chore: remove the `wip-waku-rsc` example

* chore: fixup the `with-trpc` example

* chore: remove the `kitchen-sink-react-query` example

* Revert "chore: remove the `kitchen-sink-react-query` example"

This reverts commit 2fd8af97ad.
2024-08-01 12:09:23 +12:00
Tanner Linsley
87ece2466d release: v1.46.0 v1.46.0 2024-07-31 22:49:11 +00: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
Tanner Linsley
11e39f4d3b release: v1.45.16 v1.45.16 2024-07-31 16:06:38 +00:00
Christopher Horobin
93b148d0f9
fix(react-router): when navigating from a index it route it should resolve to a valid route (#2066) 2024-07-31 18:05:31 +02:00
Loyale
12c10d523a
docs: fix a grammar error in the "code-splitting" guide (#2064) 2024-07-31 23:10:40 +12:00
Tom Ballinger
1c1673206e
examples(start-trellaux): fix re-ordering columns (#2061) 2024-07-31 19:00:21 +12:00
Tanner Linsley
dea126c82a release: v1.45.15 v1.45.15 2024-07-30 20:27:16 +00:00