A node in a [[TreeChanges]] path

For a [[TreeChanges]] path, this class holds the stateful information for a single node in the path. Each PathNode corresponds to a state being entered, exited, or retained. The stateful information includes parameter values and resolve data.

Constructors

Properties

paramSchema: any
paramValues: any
resolvables: any
state: any
views: any

Methods

  • Finds Params with different parameter values on another PathNode.

    Given another node (of the same state), finds the parameter values which differ. Returns the [[Param]] (schema objects) whose parameter values differ.

    Given another node for a different state, returns false

    Parameters

    • node: any

      The node to compare to

    • paramsFn: any

      A function that returns which parameters should be compared.

    Returns any

    The [[Param]]s which differ, or null if the two nodes are for different states

  • Parameters

    • node: any
    • paramsFn: any

    Returns boolean

    true if the state and parameter values for another PathNode are equal to the state and param values for this PathNode

  • Gets a specific [[Param]] metadata that belongs to the node

    Parameters

    • name: any

    Returns undefined

  • Returns a clone of the PathNode

    Parameters

    • node: any

    Returns any

    use instance method node.clone()