Skip to content

Function: useNodeId ​

â–¸ useNodeId(): string

This composable returns the current node id from the ctx.

It should be used inside a (custom-)node components ctx as the id is provided by the internal NodeWrapper component.

Returns ​

string

the current node id

Released under the MIT License.