Skip to main content

ConditionPredicate

type

The body of a condition. Synchronous on purpose: it runs whenever the host recomputes enablement, so it must read state and return, never await or call an action.

type ConditionPredicate = (ctx: ConditionContext) => boolean

Import

import { ConditionPredicate } from '@modular/sdk';

Notes

category
State