Fetching Movies at App Startup
In this lesson, we cover removing redundant API requests in detail.
We'll cover the following...
Introduction
At the moment, fetchMovies()
is being called from the MovieListing
widget’s build
method. A network call is made every time the build
method is called, which can be lots of network operations if the build is triggered often.
Fetching movies at app startup
In this app, we want to fetch movies only once at the start of the application.
We ...