Why is the usage of set State?

Why is the usage of set State?

  1. Access the previous state before the set State operation
  2. Replace the state completely instead of the default merge action
  3. Invoke code after the set State operation is done
  4. None

Answer: Invoke code after the set State operation is done