Skip to content
RED SAG Skills
mediumStudy question · answer published in Flutter interview questions, so no pointsflutternetworking

FutureBuilder refetching on rebuild

What is the bug in this Flutter code?

@override
Widget build(BuildContext context) {
  return FutureBuilder<User>(
    future: api.fetchUser(),
    builder: (context, snapshot) => UserCard(snapshot.data),
  );
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions