Replies: 3 comments 2 replies
-
That's not quite right. The flicker is only because your UI decided to flicker in that scenario. You have all the information you need not to flicker. For example, |
Beta Was this translation helpful? Give feedback.
-
Yes, skipLoadingOnReload fixes the UI, however, the FutureProvider still emits a loading state even when there is no need, as the value is available immediately. |
Beta Was this translation helpful? Give feedback.
-
Also, I'm curious why .stream is deprecated. |
Beta Was this translation helpful? Give feedback.
-
The following code will cause a continuous flicker between loading and value as the future2Provider is disposed of when new values are emitted, and when it is recreated, it will emit a short Loading state.
This will not create any disposal and flicker, however, .stream is deprecated... why?
Another solution that will cause disposal but no flickering is combining AsyncValues however is ugly especially if there are more than 2 to combine.
There should be an easy way to combine async in a linear imperative way, like in the first example.
Beta Was this translation helpful? Give feedback.
All reactions