The Problem with Shared State

Discover the problem with the shared state and learn its solution.

Before we start, take a look at the UserDownloader class below. It allows us to fetch a user by ID or get all the users downloaded before. What’s wrong with this implementation?

Get hands-on with 1400+ tech skills courses.