Question · JavaScript and React course · Module 10: React Ecosystem and Future

Optimistic Updates

What is an optimistic update in the context of useMutation?

Answer options

  • Automatic caching of all mutations
  • UI update after receiving the server response
  • Immediate UI update before receiving the response, with rollback on error
  • Sending multiple requests simultaneously

You can check the correct answer by solving this task in the CodeWorlds game.