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