pub fn prefetch_mode(cx: &Cx) -> PrefetchModeExpand description
Returns the default prefetch mode for links in this context.
Checks these sources in order and uses the first value it finds:
- A
PrefetchModein the request context. - A
PrefetchModein the app context. PrefetchMode::Intent.
Set the default for the app with
RouterBuilderRuntimeExt::prefetch,
or use Cx::with to set a PrefetchMode for links rendered in a
particular scope.