Skip to content
Videos
Video

Stop Doing This in initState (Flutter Stream Leak)

by Pooja Devraye youtube.com

3 min 1 view

I built a tiny "1,204 reading now" badge for a Flutter news app. It works perfectly. But every story I closed left a live socket running. 10 stories later: 12 open sockets, 732 errors in the console, and closed pages stuck in memory. Nothing on screen looked wrong. In this episode: • Why subscribing to a stream in initState without cancelling it leaks the socket AND the whole page • Why the garba…

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