This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Cases where setState(newValue) is safe: when the new value doesn't depend on the old, or in simple synchronous flows.
You've completed the free preview. Subscribe to unlock every lesson in every course.