The RedirectionTrigger controller handles redirection triggers. A Redirection trigger query pipeline rule lets you define a URL to redirect the user's browser to when a certain condition is met.

Example: redirection-trigger.fn.tsx

interface RedirectionTrigger {
    state: RedirectionTriggerState;
    subscribe(listener: () => void): Unsubscribe;
}

Hierarchy (View Summary)

Methods

Properties

Methods

  • Adds a callback that's invoked on state change.

    Parameters

    • listener: () => void

      A callback that's invoked on state change.

    Returns Unsubscribe

    A function to remove the listener.

Properties

the state of the RedirectionTrigger controller.