arrow_backBACK TO DRILLS
Blue Beltusememo-usecallbacklockPREMIUM

Hook argument immutability

A custom hook memoizes a computed value using useMemo([icon]). Another part of the component later mutates icon.enabled directly without creating a new object reference. What problem can occur?

lock

This Drill is Locked

This is a premium drill. Continue on to the next free drill in the sequence.

CONTINUE DRILLarrow_forward
BugDojo
BlogFAQ

© 2026. Carved in code.