logo
logo

Namespace Stylelabs.M.Sdk.Models.Tracking

Classes

DirtyValueCalculator

This class will check if values are dirty or not. Note however that this tracker only supports types that are supported in M:

  • Primitives
  • JTokens
  • Collections of primitives

The goals is to have intelligent dirty tracking.

  • If the value was set to A, then set to B and finally A again, then it should be marked not dirty.
  • If the value was set to A, and B is a copy of A (reference is not the same), then it should be marked not dirty.

For optimal performance, try to prevent unnecessary IsDirty checks.

Can we improve this article ? Provide feedback