-
Hi, I have a consumer widget that uses FutureProvider. When the AsyncValue has an error, I have a button that invalidate the provider. But when I invalidate the provider, the AsyncValue is not triggering the
|
Beta Was this translation helpful? Give feedback.
Answered by
noriHanda
Oct 20, 2023
Replies: 1 comment 1 reply
-
It is an intended behavior. You can change a parameter of |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
artahc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is an intended behavior. You can change a parameter of
when
skipLoadingOnReload
to true to fire loading callback.Refer to: https://pub.dev/documentation/riverpod/latest/riverpod/AsyncValueX/when.html