The portion of the URL pathname that was matched.
The portion of the URL pathname that was matched before child routes.
An async function that will resolve any route.lazy implementations and
execute the route's handler (if necessary), returning a DataStrategyResult
match.resolve does not mean you're calling the
action/loader
(the "handler") - resolve will only call the handler internally if
needed and if you don't pass your own handlerOverride function parametermatch.resolve for all matches, even if they have
shouldLoad=false, and it will no-op if no loading is requiredmatch.resolve() for shouldLoad:true
routes to ensure that any route.lazy implementations are processedmatch.resolveThe route object that was used to match.
Deprecated in favor of shouldCallHandler
A boolean value indicating whether this route handler should be called in this pass.
The matches array always includes all matched routes even when only
some route handlers need to be called so that things like middleware can
be implemented.
shouldLoad is usually only interesting if you are skipping the route
handler entirely and implementing custom handler logic - since it lets you
determine if that custom logic should run for this route or not.
For example:
/parent/child/a and you navigate to /parent/child/b -
you'll get an array of three matches ([parent, child, b]), but only b
will have shouldLoad=true because the data for parent and child is
already loaded/parent/child/a and you submit to a's action,
then only a will have shouldLoad=true for the action execution of
dataStrategyaction,
dataStrategy will be called again for the loader
revalidation, and all matches will have shouldLoad=true (assuming no
custom shouldRevalidate implementations)Arguments passed to the shouldRevalidate function for this loader execution.
Will be null if this is not a revalidating loader DataStrategyMatch.
Determine if this route's handler should be called during this dataStrategy
execution. Calling it with no arguments will leverage the default revalidation
behavior. You can pass your own defaultShouldRevalidate value if you wish
to change the default revalidation behavior with your dataStrategy.
OptionaldefaultShouldRevalidate: booleandefaultShouldRevalidate override value (optional)
The names and values of dynamic parameters in the URL.