arrow_backBACK TO DRILLS
Blue BeltcontextlockPREMIUM

context value object causes re-renders

A provider renders <AuthContext value={{ currentUser, login }}> where login is declared inside the component. Consumers re-render on every parent render even when currentUser has not changed. Why?

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.