gradum-kit - v0.1.0
    Preparing search index...

    Function markDirtyPath

    • Function

      markDirtyPath

      Parameters

      • target: object

        The target to which the signals are bound.

      • keys: KeyType[]

        The key path of the data that changed.

      Returns void

      Marks as dirty every signal whose bound key path (registered via modelSignal or nestedModelSignal) overlaps the given changed key path, and fires their attached effects. A bound path overlaps the changed path when either is a prefix of (or equal to) the other: replacing a parent value invalidates signals bound deeper inside it, and changing a nested value invalidates signals bound to any of its ancestors. An empty keys array marks every bound path dirty, as it represents a change at the root.