← @mortar-kit/core

IslandActionsOptionsinterface

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

interface IslandActionsOptions

What islandActions needs from the app.

Properties

action: (ref: EntryRef) => string | SerializableAttributeValue

The forms' action attribute, as on the server (brickActions.action), for a post before the island hydrates.

run: (ref: EntryRef, form: FormData) => Promise<unknown>

Runs an entry's action on the server: the app's server function that calls Content.runAction.