react-router-native
Advanced tools
Changelog
v6.26.2
Date: 2024-09-09
unstable_dataStrategy
API to allow for more advanced implementations (#11943)
unstable_dataStrategy
, please review carefully as this includes breaking changes to this APIunstable_HandlerResult
to unstable_DataStrategyResult
unstable_dataStrategy
from a parallel array of unstable_DataStrategyResult[]
(parallel to matches
) to a key/value object of routeId => unstable_DataStrategyResult
match.shouldLoad
)handlerOverride
instead of returning a DataStrategyResult
handlerOverride
will be wrapped up into a DataStrategyResult
and returned fromm match.resolve
match.resolve()
into a final results object you should not need to think about the DataStrategyResult
typehandlerOverride
, then you will need to assign a DataStrategyResult
as the value so React Router knows if it's a successful execution or an error (see examples in the documentation for details)fetcherKey
parameter to unstable_dataStrategy
to allow differentiation from navigational and fetcher callsblocker.proceed
is called quickly/synchronously (#11930)Full Changelog: v6.26.1...v6.26.2
Changelog
v6.26.1
Date: 2024-08-15
unstable_patchRoutesOnMiss
to unstable_patchRoutesOnNavigation
to match new behavior (#11888)unstable_patchRoutesOnNavigation
logic so that we call the method when we match routes with dynamic param or splat segments in case there exists a higher-scoring static route that we've not yet discovered (#11883)
unstable_patchRoutesOnNavigation
against so that we don't re-call on subsequent navigations to the same pathFull Changelog: v6.26.0...v6.26.1
Changelog
v6.26.0
Date: 2024-08-01
replace(url, init?)
alternative to redirect(url, init?)
that performs a history.replaceState
instead of a history.pushState
on client-side navigation redirects (#11811)unstable_data()
API for usage with Remix Single Fetch (#11836)
createStaticHandler.query()
to allow loaders/actions to return arbitrary data along with custom status
/headers
without forcing the serialization of data into a Response
instanceunstable_dataStrategy
such as serializing via turbo-stream
in Remix Single Fetchstatus
field from HandlerResult
status
from unstable_dataStrategy
you should instead do so via unstable_data()
future.v7_partialHydration
along with unstable_patchRoutesOnMiss
(#11838)
router.state.matches
will now include any partial matches so that we can render ancestor HydrateFallback
componentsFull Changelog: v6.25.1...v6.26.0