React·Advanced·Conceptual·1 min read
Can context selectors be built with useMemo alone?
Short interview answer
No. useMemo does not change the fact that consuming the context subscribes to its whole value. Fine-grained subscriptions require an appropriate selector-aware mechanism.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.