Experimental
Creates an equality-based computed signal, only updating when the new value is not deeply equal to the old value.
The type of the computed value.
A function returning the value to compare.
An equality computed signal.
const eqComp = createEqualityComputed(() => { return { foo: 'bar' };}); Copy
const eqComp = createEqualityComputed(() => { return { foo: 'bar' };});
Creates an equality-based computed signal, only updating when the new value is not deeply equal to the old value.