Nova · Actions
Lifecycle
The steps under lifecycle.mount run once, when the action is put on a canvas, before anything is pressed.
{
id: 'lifecycle',
data: { status: 'waiting' },
layout: {
component: 'Text',
children: 'This action is {{$.status}}.',
},
lifecycle: { mount: [{ set: 'status', value: 'on its canvas' }] },
}This action is on its canvas.
Nothing. It is only drawn.
{ status: 'on its canvas' }This action is on its canvas.
Left: the action as the package ships it. Right: the same action running in this page, rendered with this site’s components. Below: the action run as the example specifies, on the installed package.