- Notifications
You must be signed in to change notification settings - Fork 49.9k
Closed
Description
Calling setState in componentWillMount doesn't behave as I would expect. Here's a fiddle demonstrating. In short, the callback is invoked before the state has been updated.
Cristy94