Datastar Error
FetchFormNotFound
No closest form could be found in the DOM. When setting the contentType option to form, the element must have a wrapping form, otherwise a selector must be provided to a form that exists in the DOM.
Example using a selector:
1<button data-on:click="@post('/endpoint', {contentType: 'form', selector: '#myform'})"></button>See the docs for the @get() action.