Skip to content

AppSeedHookFn

AppSeedHookFn = (prev, current, ctx) => Promise<string | unknown>

Seeds a new Workspace with its initial Items, as one link in the chain of seed hooks registered across all Apps.

() => Promise<string | unknown>

Continues the chain with the hooks registered before this one and by dependency Apps.

WriteAppInstance

The App that registered the hook, with write access to its Items.

SystemWriteRuntimeInstance

A system-level write Runtime bound to the new Workspace.

Promise<string | unknown>

The value the preceding link receives from its own prev().

Seed hooks are chained exactly like AppCreateHookFn: root App first, most recently registered hook first, with prev() running the remainder of the chain.