---
title: "Namespace Stylelabs.M.Sdk.Models.Tracking"
slug: "sdk--stylelabs.m.sdk.models.tracking"
abstract: ""
---
# Namespace Stylelabs.M.Sdk.Models.Tracking

## Classes

### [DirtyValueCalculator](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.models.tracking.dirtyvaluecalculator.html)

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.
