Fundamentals · One source of truth

State management-style app

Illustrative system design for a one source of truth app like State management: 3 topics to read, from requirements to deep dives.

Illustrative design, not State management’s actual implementation. Arrowbox is not affiliated with State management’s owner. Disclaimer

Start with Kinds of state Sign in to start readingUpdated 2 Oct 2026

Core

  • Kinds of state and where they liveBeginner · 27 min read · Sign in to read

    Most state bugs come from keeping the same fact in two places; sort each piece of state by who owns it and how long it lives, and it has an obvious home.

  • Shaping a client storeIntermediate · 23 min read · Sign in to read

    Store each entity once, by id, and let views look it up; then an update to one product shows correctly on the card, the product page and the cart in the same render.

  • Persisting state: URL, storage and tabsIntermediate · 29 min read · Sign in to read

    State that must survive a reload, a shared link or a second tab has to leave memory: the URL for what a link should reproduce, storage for what the device should remember, and a channel to keep tabs agreeing.