remix/router · Type

View Source

Action

Summary

An individual route action.

Actions may be plain request handler functions or objects with optional action 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, middleware> =
  | RequestHandler<ActionContext<route, context>>
  | ActionObject<route, context, middleware>