awai
awai copied to clipboard
Fix sync/async distinguishing in Selector
Right now asyncSelector is used if either any of dependencies is async readable, or if predicate's constructor is AsyncFunction
.
const isAsyncPredicate = predicate.constructor.name === 'AsyncFunction';
Current behavior
It does not work in some JS engines, like JSC.
Expected behavior
It works in any JS engine.