Skip to content

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

@arturoszulc

Description

@arturoszulc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions