Dmitry
Dmitry
Explicit direct call is just `event()` somewhere in the code
Another edge case: ```ts const result = sample({ source: forwardRef(() => { return Math.random() > 0.5 ? $storeA : eventB }), clock: $storeC }) console.log(is.store(result)) ``` What we will get...
I mean, _how_ sample should know that we returning from forwardRef? If we return store then result will be store too, and event otherwise, but how you will explain that...
There are a lot of methods in the library and it’s ecosystem which choose what to do with its arguments based on their types. In short, your solution should return...
`is.store` returns its result immediately, that should be taken into account. I understand and support your goals, but this just show that current proposal has significant unsolved issue. Look at...
Every other case could be reduced to this, important one You may have already noticed that laziness percolate the whole concept and brings quite a few unique issues, so this...
Everything could be easier if we allow lazy initialization only for operators which don’t create new units, assume to have a `target` field. Then yes, we might use separate `defer`...
> This concept could be implemented as completely standalone api I SUDDENLY realized that we have such api, it called "Promise" 🙃 So, take a part about `target` and a...
> What about is.store which should return immediately? If you want to create new unit you will not be able to use neither promises nor `domain.defer` anyway So your code...
Yes. But I'm not sure about name and relation with domain. Maybe domain is not required? ```ts import {delay} from 'patronum' import {defer} from 'effector' import {triggerA, triggerB, requestFx} from...