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
medium
Frontend Performance
Why is adding a value to a dependency array 'just to silence a lint warning,' without considering whether it should genuinely be reactive, flagged as a mistake?
A
Lint warnings should always be ignored
B
It can unintentionally recreate the exact restart-churn problem the stale-closure example shows for the OPPOSITE case — forcing an effect to re-run on every change of a value that was never meant to be reactive in the first place
C
Dependency arrays have no real effect on behavior
D
This mistake is impossible to actually make in real code
Check Answer