SpinTheMic
Pro

Interview practice question

Context changes cause the whole app to re-render

Frontend Engineering · React · Intermediate

Every time a value in your app-wide context changes, many components re-render and the app feels slow. How would you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Split context by concern/update frequency.
  • Memoise provider value.
  • Separate state and dispatch contexts.
  • Move fast-changing state to a store with selectors.
  • Keep state local where possible.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics