Grokking the Modern Frontend System Design Interview
0% completed
Server State Caches
A shopper writes to Basket support: "Every time I go back to the product list, it shows a spinner for a second, even though I was just there. And after I add something, the badge at the top says 3 but the cart page says 4."
Both complaints come from the same design. Each screen fetches its own data when it opens, keeps it in its own component state, and throws it away when it closes. The list is fetched again on every visit, and the badge and the cart page each hold a different copy of the cart, loaded at different times.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%