get started

Introduction

Form Actions and Server Loaders paradigms for Nuxt.

What are form actions and server loaders

  • Form Actions are a convenient way to send data to your server using native HTML forms that can be progressively enhanced.
  • Server Loaders are a convenient way to load type-safe data from your server into your pages and components, without manually fetching from an API route.

Why is this module not included in Nuxt by default ?

The Nuxt team is considering adding this feature at the framework level. If you want to show support, you can :

  • use this package and star this repository
  • upvote / add relevant comment on the related issue and PR.
  • start discussions, spread the word on discord or on Twitter about this module and this paradigm
  • provide feedback

Prior Art

This module was inspired by the following projects and articles :