It's computed()
, but with a second argument that gets passed each newly returned value in order to produce a string cache key. If you return the same cache key as the previous run of the computed, no update will be performed (no effects, no renders, etc).
- computed(
- () => ['an', 'unstable', 'return', 'value'],
- )