ngxtension/ngxtension-platform

computedAsync - missing Signal equality functions

dmpost opened this issue · 3 comments

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.

But there is equal fn
image

Hello @dmpost
As @kkachniarz220 has said, equal already is part of computedAsync. Closing this issue as it's already working.

Oh,
yes indeed, didn't found it in docs.

Great
thnx