Grokking the Modern Frontend System Design Interview
Vote

0% completed

​

Where State Lives

A shopper types "milk" into Basket's search box, ticks the "Organic" filter, opens page 3 of the results, and starts typing a delivery note in the checkout form. Where should each of those four facts be kept?

Most designs answer "in the store" and stop there. That answer breaks the back button, loses the search when the page reloads, and makes every product card redraw when one value changes.

Each kind of state has a natural home, and the home follows from two questions: who owns the true value, and who needs to read it

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content