* fix(react-router): encodeURI the parameters when building the pathname before commit
* chore(react-router): add a good comment so we dont nuke this in the future
* test(react-router): add tests to confirm functionality of the path params changes
* chore: ignore the `*.vitest-temp.json` files
* chore: delete `tsconfig.vitest-temp.json`
* fix(history): update the `state.key` when using memory history on navigation change via `.back(), .forward(), and .go()`
* fix(history): use the exisitng `assignKey` function for seeding the key
* chore: remove test env
- 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