Replies: 1 comment 2 replies
-
If you are passing an initial string then you are giving it a non loading state to show instead. You can always check to see if it is refreshing or loading with Async State. Loading means there is not data, refreshing is updating existing data. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Say I have an initial future string
late final _futureString = futureSignal(() { return getAStringFromAnHttpRequest(); }, initialValue: '');
and the string is referenced/used, triggering the http load, why isn't the _futureString.value set to AsyncLoading, whereas if I do a _futureString.reload() (or .refresh()), it is? Surely in both cases, it is completing the future and should be in the AsyncLoading state?
How to tell if the initial future is being run without 2 tests (for isCompleted in the initial case, and AsyncLoading)?
Beta Was this translation helpful? Give feedback.
All reactions