react-router-dom
Advanced tools
Changelog
v7.4.0
Date: 2025-03-19
@react-router/dev
- Generate types for virtual:react-router/server-build
module (#13152)react-router
- Fix root loader data on initial load redirects in SPA mode (#13222)react-router
- Load ancestor pathless/index routes in lazy route discovery for upwards non-eager-discovery routing (#13203)react-router
- Fix shouldRevalidate
behavior for clientLoader
-only routes in ssr:true
apps (#13221)@react-router/dev
- Fix conflicts with other Vite plugins that use the configureServer
and/or configurePreviewServer
hooks (#13184)⚠️ Unstable features are not recommended for production use
react-router
- If a middleware throws an error, ensure we only bubble the error itself via next()
and are no longer leaking the MiddlewareError
implementation detail (#13180)
catch
-ing errors thrown by the next()
function in your middlewaresreact-router
- Fix RequestHandler
loadContext
parameter type when middleware is enabled (#13204)react-router
- Update Route.unstable_MiddlewareFunction
to have a return value of Response | undefined
instead of Response | void
(#13199)@react-router/dev
- When future.unstable_splitRouteModules
is set to "enforce"
, allow both splittable and unsplittable root route exports since it's always in a single chunk (#13238)@react-router/dev
- When future.unstable_viteEnvironmentApi
is enabled, allow plugins that override the default SSR environment (such as @cloudflare/vite-plugin
) to be placed before or after the React Router plugin (#13183)create-react-router
react-router
@react-router/architect
@react-router/cloudflare
@react-router/dev
@react-router/express
@react-router/fs-routes
@react-router/node
@react-router/remix-config-routes-adapter
@react-router/serve
Full Changelog: v7.3.0...v7.4.0