A function that returns the value to use as context in route loader and
action functions.
You can think of this as an escape hatch that allows you to pass
environment/platform-specific values through to your loader/action, such as
values that are generated by Express middleware like req.session.
A function that returns the value to use as
context
in routeloader
andaction
functions.You can think of this as an escape hatch that allows you to pass environment/platform-specific values through to your loader/action, such as values that are generated by Express middleware like
req.session
.