computedAsync - missing Signal equality functions
dmpost opened this issue · 3 comments
dmpost commented
We need equality func for computedAsync.
Which can be added to signal() or computed():
data = signal(['test'], {equal: _.isEqual});
or
data = computed(() => {...}, {equal: () => false});
I use computedAsync a lot,
and often add Date.now() to the result to make it unique, otherwise the same values are ignored.
kkachniarz220 commented
eneajaho commented
Hello @dmpost
As @kkachniarz220 has said, equal already is part of computedAsync. Closing this issue as it's already working.
dmpost commented
Oh,
yes indeed, didn't found it in docs.
Great
thnx