You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using deriveAsync with requireSync: true I still expect it to only run the computation once there is a usage (consumer) for the signal, which is how it works with angular built in computed, but it runs the computation immediately when derivedAsync is called.
A common usecase where this would be a problem is if the derivedAsync rely on the value of a required input signal.
The text was updated successfully, but these errors were encountered:
ShacharHarshuv
changed the title
deriveAsync with requiredSync: true is not lazyderiveAsync with requiredSync is not lazy
Feb 12, 2025
When using
deriveAsync
withrequireSync: true
I still expect it to only run the computation once there is a usage (consumer) for the signal, which is how it works with angular built incomputed
, but it runs the computation immediately whenderivedAsync
is called.A common usecase where this would be a problem is if the
derivedAsync
rely on the value of a required input signal.The text was updated successfully, but these errors were encountered: