remix/fetch-router · TypeView Source
Action
Summary
An individual route action.
Actions may be plain request handler functions or objects with optional inline middleware.
Most app code should use createAction; use this type directly when you need
to describe an action for an explicit RequestContext type.
Signature
type Action<route, context> =
| RequestHandler<ContextWithParams<context, Params<ActionPattern<route>>>>
| ActionObject<route, context>;