Back to Remix

Patch.Optional Action Middleware

packages/fetch-router/.changes/patch.optional-action-middleware.md

2.11.1260 B
Original Source

The Action/BuildAction object form accepted by router.get(...), router.post(...), and router.map(...) now uses { action, middleware? }, so you can omit middleware entirely instead of writing middleware: [] when you do not need route middleware.