StateFieldSpec.compare method
StateFieldSpec › compare
Compare two values of the field, returningtrue when they are the same. This is used to avoid recomputing facets that depend on the field when its value did not change. Defaults to using ===.Signature:
compare(a: Value, b: Value): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
| a | Value | The first value to compare. |
| b | Value | The second value to compare. |
Returns: boolean — true if the values are the same, false otherwise.