- Fixed an issue where preloads would redirect and not resolve to the correct location
- Removed the need for `getRenderedMatches`. The matches intended to be rendered are now always stored at `store.matches`
- Removed the experimental ability for async meta and headers. Loaders should be used to get async data into these functions
- Pending matches now take `beforeLoad` into account and properly start pendingMs timers.
- `pendingMinMs` is also more accurate now by only triggering its timers when the pending state is encountered during rendering
- Removed a logical path where the `pending` component could be directly rendered within a route instead of handled by suspense
- Matches that don't require loaders or beforeLoaders will start as "success".
- Meta and headers are now called and saved for matches that are cached or already in the "success" state
- Fixed an issue where redirects and not-found errors would get improperly swallowed
- Fixed an edge-case where outdated navigations were not ignored and created race-conditions
- Refactored isServer into the router so we can do some better mocking in tests
- Added tests around scripts, meta, and redirects
- Fixed issues with non-vinxi server envs
- Injected html now waits for <body>
Closes#1104#1146#1168
* fix: updated vinxi ssr example with streaming
* chore: updated vinxi packages
* chore: unused imports
* fix: use type instead of mode
* fix: updated vinxi example to latest tsr
* chore: cleanup
* chore: use createTanStackRouter
* style: run prettier
* chore: package json to reflect the other examples
* chore: rebased with latest main
* style: prettier
---------
Co-authored-by: @alessandrojcm <alessandro.cuppari@broadridge.com>
Co-authored-by: @SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
* feat(react-router): mark the `navigate` function in the `beforeLoad` and `loader` callbacks as deprecated
* docs: mark the navigate function passed into the `beforeLoad` and `loader` functions as deprecated
Investigation into the broken links found by @MarcoB-Ec lead me to discovered these were broken in the top-level docs as well.
Co-authored-by: Marco Brito <35307131+marcob-ec@users.noreply.github.com>
* fix: optional search params not being optional
* fix: remove expand
* tests: add type tests for optional search params
* fix: remove unnecessary intersections
* perf: only omit the root schema at the root
* perf: improve performance of search params merging
* perf: improve performance by not using omit
* fix: avoid deep insantiation errors
* fix: exclude root search schema
* fix: return TSearchSchema when at the root
* fix: include root schema