Closed daniel-v closed 4 months ago
Can you make a PR?
@rodydavis, I encountered a similar issue while setting up a signal with a null value initially and then updating it onButtonClick. Even after assigning values to these signals (Future and Async), I faced the problem of UI not updating. However, I employed a switch functionality to handle this, as shown below:
Signal<List
// UI code return switch (futureList.watch(context)) { // Cases handling UI updates // // }
Hey @rodydavis, any plans to iron out those Future and Async signal glitches? Considering using this state management in my next project. Thanks! 🙏
Yes for sure! Happy to accept a PR! Will get to it soon on the next batch of updates 👍🏼
Given the following scenario:
the circular progress indicator is shown all the time. I believe this is because of the implementation of AsyncState.maybeMap .
I think it should read:
or rather in the style of existing code:
map
does not have this issue because all state callbacks have to be defined. (vale, error, loading)