Skip to content
Version: xstate@5.0.0

State.hasTag() method​

Whether the current state configuration has a state node with the specified tag.

Signature:

hasTag(tag: TTag): boolean;

Parameters​

ParameterTypeDescription
tagTTag

Returns:

boolean