bizz84/starter_architecture_flutter_firebase

AsyncVlaue.guard() doesn't work, cause state is lost

Opened this issue · 0 comments

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