Manages the toggling of state properties based on specified paths. Every paths leading to boolean value will be initially set to false, then activities one will deactivate the others.

Constructors

Accessors

Methods

  • Set to false every state leaded by toggle paths except the specified one. Use the given value on the specified one.

    Parameters

    • setPath: string
    • newValue: boolean

    Returns void

  • Filters out invalid toggle paths from the given array of paths. Invalid path are path not leading to object in the state, or not leading to boolean value.

    Parameters

    Returns string[]