← @mortar-kit/core

Submissioninterface

import { Submission } from '@mortar-kit/core'

interface Submission<R>

A form post to a brick's action, as its component sees it.

Properties

pending: boolean

True while the post is in flight (only with JavaScript; a plain post reloads the page).

result?: R

What the action returned.

error?: unknown

What the action threw, if it threw (in production, a generic error).