≈ the.bay.news

Your Flutter Screen Fetches on Every Build. It Should Fetch Once.

DEV Community
Your Flutter Screen Fetches on Every Build. It Should Fetch Once.
A screen that calls its API inside build fires the same request on every rebuild. Fetch once in initState, let build only read the result, and here is the complete code.

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.