Should FutureSignal.reset works the same as riverpod invalidateCache(provider)? #438
Unanswered
thangmoxielabs
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
FutureSignalis like compute, but async. It takes in a function and emit/update values depending on its dependencies. UnlikeAsyncSignalwhere we have to manually set the signal value,FutureSignalis meant to have its value updated automatically. So after calling.resetwe have to.reloadtheFutureSignal, which we're very unlikely would.Imo after calling
FutureSignal.resetthe next iteration it should recompute the value in its function, rather than becomingAsyncLoadingforeverBeta Was this translation helpful? Give feedback.
All reactions