Each time a request to get the list of movies is triggered, toggle the application state to loading and fetch the list of movies from server asynchronously. Once the request is…