Remix
Remix
remix/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<ActionContext<route, context>>
  | ActionObjectWithoutMiddleware<route, context>
  | ActionObjectWithMiddleware<route, context>;