Skip to content

How to ignore cache for a specific query #633

@Fanom2813

Description

@Fanom2813

Hello , i am new with flutter i would like to ignore cache for specific query that needs latest data

Future<void> refreshProfile() async {
    var req = GMeReq();
    var data = await GraphQLService()
        .client
        .request(req)
        .firstWhere((data) => data.loading == false);

    currentProfile.value = User.fromMeData(data.data);
    await saveAccount();
  }

kindly help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions