Immutable Updates

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • medium
  • Pro

A state update in your app changes a nested field on an existing object, and the screen doesn't refresh. A colleague suggests Object.freeze. Explain what immutability means here, what freeze does and doesn't do, and how you'd update nested data without mutation.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →