Skip to content
Videos
Video

Flutter Pull-to-Refresh + initState: The Duplicate Fetch Nobody Notices

by Pooja Devraye youtube.com

3 min 0 views

I opened my news app once, and my server got the same request twice. Then I pulled to refresh, and the spinner vanished before the data even arrived. So I pulled again. And again. Two bugs hiding in almost every Flutter app: 1. Loading in initState AND calling RefreshIndicator.show() on open, so every open fetches twice. 2. An onRefresh that returns before the data arrives (bloc.add doesn't wait)…

Topics Bloc

It's All Widgets

Apps by Pooja Devraye

  • GamersGram screenshot
    Featured

    GamersGram

    Gamersgram is a place where you can get all the information about the gaming industry

    Entertainment 5.0
  • AfterFeel: Mood Journal screenshot

    AfterFeel: Mood Journal

    Find Balance Through Feeling

    Health & Fitness 5.0
  • PcodPal: PCOD/PCOS Tracker screenshot
    Featured

    PcodPal: PCOD/PCOS Tracker

    Your PCOD wellness buddy

    Health & Fitness Updated 5.0

Report this · Wrote this? Claim it

FlutterX is supported by