Hiyve Components - v1.0.0
    Preparing search index...

    Interface UseReactionSyncResult

    Return value from the useReactionSync hook.

    interface UseReactionSyncResult {
        activeEffect: ReactionEffect | null;
        canTrigger: boolean;
        clearEffect: () => void;
        cooldownRemaining: number;
        isCoolingDown: boolean;
        triggerReaction: (effectId: string) => void;
    }
    Index

    Properties

    activeEffect: ReactionEffect | null

    Currently active effect, or null

    canTrigger: boolean

    Whether the local user has permission to trigger reactions

    clearEffect: () => void

    Clear the active effect (e.g., on early dismissal)

    cooldownRemaining: number

    Seconds remaining in cooldown (0 when not cooling down)

    isCoolingDown: boolean

    Whether the cooldown is active

    triggerReaction: (effectId: string) => void

    Trigger an effect by ID — broadcasts to all participants