Skip to main content

Component Object

This node accesses the internal state object of the current component.

The Component Object node allows a component to store and retrieve its own private data.

The Component Object node provides a way for a component to maintain internal state that persists as long as the component is alive. It acts like a local database record for the component instance. You can define properties on it and read/write them.

Inputs

Properties

DataDescription
PropertiesA comma-separated list of property names to manage (e.g., "count,isActive"). Adding names here creates dynamic input/output ports.

Property Values

DataDescription
*Dynamic inputs for each property defined in Properties. Setting a value here updates the state.

Actions

SignalDescription
FetchManually retrieves values.

Outputs

Property Values

DataDescription
*Dynamic outputs for each property.

Changed Events

SignalDescription
* ChangedDynamic signals triggered when a specific property changes.
ChangedTriggered when any property changes.

Usage

Use this to create stateful components without relying on global variables.

Example: Counter Component

  1. Set Properties to count.
  2. Connect count output to count input (via an Addition node to increment).
  3. The component now remembers its own count.

Detailed Behavior

  • Instance Scoped: Every instance of the component has its own separate state object.
  • Persistence: State is lost if the component is unmounted (e.g., navigating away or removing from list).

Troubleshooting

  • Inputs/Outputs Missing: You must type property names into the Properties field for ports to appear.