* feat: return async resolver from useBlocker hook
* feat: pass async resolvers to children on Block component
* fix: types and always reset promise
* docs: update example with custom UI
* refactor: namings
* docs: toggle between custom ui and default
* feat: expose status and refactor hook props
* feat: support current API
* feat: custom blocker should take precendence over the manual promise blocker
* test: unit test on condition to avoid breaking changes with the new API
* docs: deprecate old syntax and update the docs
* docs: create useBlocker API reference
* fix: deprecated interface
- 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
* 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
* feat: add reset prop to errorComponent
* fix: types of defaultErrorComponent
* fix: put match into pending state when being invalidated if it was in error state
* docs: reset
* docs: error handling
* docs: integrate error handling into example
* chore: prettier on md files
* chore: fix wrong auto import
* fix: reset error boundaries from react-query in an effect
so that navigating away from a route will also re-trigger the query
* docs: error handling with TanStack Query
* chore: fix eslint
* fix: not all error components have a `preload`
* fix: merge conflict
* feat(react-router): return the useNavigate hook
* docs(react-router): update verbiage on the RouteClass doc
* test(react-router): ensure the typed hooks are available across the shared surfaces
* docs: add createLazyFileRoute
* docs: broken link to the FileRouteClass
* docs: remove the word literal
* docs: update the source of its configuration options
* docs: add createLazyRoute
* fix: `routeTree` into the `createRouter` instance
* fix: switch to `Block/useBlocker` since react-router uses `useBlocker` instead of `Prompt/usePrompt`
* fix: rename RouteApi to getRouteApi and include useLoaderDeps
* feat: indicate `.lazy` suffix and mark deprecation suffixes being phased out
* fix: createRootRouteWithContext - `routeTree` into the `createRouter` instance
* fix: rootRouteWithContext - `routeTree` into the `createRouter` instance
* feat: `Function` keyword is redundant since its already nested under `Functions`
* feat: alphabetical sorting of functions
* feat: move `rootRouteWithContext` to the deprecated list
* feat: use backticks
* feat: alphabetical sorting of hooks
* docs: path-params
* docs: search params
* docs: type-safety
* docs: useParams reference
* docs: code-based routing
* docs: data mutations
* docs: route-trees
* docs: search-params
* docs: deferred-data-loading
* docs: revert unneccessary changes and leave in a stub to add the "tips"
* docs: forgot to include in the last commit
* docs: add the "🧠 Quick tip" items about the `getRouteApi` function
* feat: add `notFound`, boundary, and support for routes
* feat: add global not found
* refactor: clean up throw global not found route
* feat: reset not founds on page navigation
* fix: fix duplicate throw global not found
* feat: rework global not found handling and add not-found-ssr example
* feat: update not found ssr example
* fix: fix type in not-found.tsx
* feat: add way to statically render a global not found page
* feat: remove flicker from notFound with SSR
* feat: remove <GlobalNotFound> server api
* feat: add file-based routing and codesplitting for not found component
* feat: add option to trigger not found on specific route
* docs: write docs for `notFound` and `NotFoundError`
* docs: document Route.notFound(opts)
* feat: add deprecation warnings to notFoundRoute
* fix: clean up a few things that went awry during rebase
* fix: fix react-router-server build
* feat: add not-found apis to basic-file-based example
* feat: update basic-ssr-streaming-file-based example to use new not-found apis
* chore: clean up a few things
* docs: write guides for new not found api
* docs: add api documentation for `not-found.tsx`
* feat: add notFoundComponent to lazy loading
* docs: deprecate NotFoundRoute and link to new apis
* fix: remove `.notFoundComponent` suffix in file based routing
* feat: make `route` option of typesafe and compatible with `getRouteApi`