Skip to content
React·Intermediate·Conceptual·1 min read

When is an external store with selectors more suitable?

Short interview answer

For large or high-frequency shared state, selectors allow consumers to subscribe to small slices rather than invalidating every consumer. External stores also offer lifecycles and tooling beyond context propagation.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Context and render performance

Related questions