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
What is the key distinguishing question for deciding whether a value belongs in a dependency array versus inside a useEffectEvent-wrapped function?
A
Whether the value is a number or a string
B
Whether the value's CHANGE should genuinely restart/re-trigger the effect's own scheduling logic (deps) versus merely needing to be READ at execution time without restarting anything (useEffectEvent)
C
Whether the value comes from useState or useContext
D
There is no real distinction — always use useEffectEvent for everything
Check Answer