Skip to content

StateFieldSpec.compare?

StateFieldSpec › compare?

Type: (a: Value, b: Value) => boolean

Compare two values of the field, returning true 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 ===.