Closed yousefak007 closed 7 months ago
Got it, I just realized the onEffectCreated is not called for subscribe in signal/computed directly.
Thanks for capturing this!
One error with the code is if (computedSignal.peek())
will throw an error because the value has not been read.
A computed function will always throw an error if the value has not been created. I think the docs need to make that more clear
One error with the code is
if (computedSignal.peek())
will throw an error because the value has not been read.A computed function will always throw an error if the value has not been created. I think the docs need to make that more clear
could you give me a case that could throw an exception?
thanks after the upgrade, everything works fine, and there is no error, asyncWhen
it's really very handy, it depends on the predicate with signals to make future
it can be nice if added to this library by default, what do you think?
i made
asyncWhen
function like mobxfor test:
and everything works fine, except there is an error showing in console:
after some investigation, the error came from
devtool.dart
file from_onEffectCalled
callbackso using
!
causing the null check exception, and also_effectCount[instance.globalId] ?? 0;
what is doing without any assignation?