DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Frontend Performance Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
hard
Frontend Performance
A code review finds a large AppContext holding { theme, user, cartItems }, with a component that only reads `theme` wrapped in React.memo. The cartItems update frequently. What's the actual re-render behavior of that theme-only component?
A
It never re-renders, since React.memo protects it fully
B
It re-renders on every cartItems update too, despite only using theme and being wrapped in React.memo — the context-bypass mechanism triggers on ANY change to the subscribed context's value, not just the specific field read
C
It only re-renders when theme specifically changes
D
This scenario is impossible to construct in real React code
Check Answer