AsyncVlaue.guard() doesn't work, cause state is lost
Opened this issue · 0 comments
arturoszulc commented
Fragments of your code, such as:
state = await AsyncValue.guard(() => repository.addJob(
uid: currentUser.uid, name: name, ratePerHour: ratePerHour),
don't work. The state is lost before the await is finished. More details: rrousselGit/riverpod#2420