Common questions
Where should state live by default?
In the simplest place that works — component state, URL parameters, or server data — before adding shared stores. Most pages do not need global state.
When is a global store justified?
When distant parts of the UI must share one source of truth that URL and props cannot coordinate cleanly. Document why a store was added.
What causes state architecture to hurt performance?
Broad subscriptions, duplicated sources of truth, hidden mutation, and hydrating client state that fights server HTML — leading to extra renders and bugs.