← @mortar-kit/core

IslandPayloadinterface

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

interface IslandPayload

What an island's element carries to the browser (as JSON).

Properties

id: string

The island's hydration id, unique in the page.

brick: string

The brick's name.

data: unknown

The entry's normalized data.

loaded?: unknown

What the brick's load returned.

ref?: EntryRef

Where the entry is stored, for its form.

submission?: Submission<unknown>

The entry's latest submission when the page was rendered (after a post without JavaScript).