Skip to content

ComputedEqualsValue

How MobX should compare the previous and next computed value before notifying observers.

  • 'struct' — structural comparison (comparer.structural).
  • 'shallow' — shallow comparison (comparer.shallow).
  • true — reference equality (comparer.default).
  • false — skip the annotation (handled by the annotation.computed / annotation.observable helpers).
  • A custom (a, b) => boolean is allowed by the type for parity with IComputedValueOptions.equals.

Released under the MIT License.