Updating: componentWillUpdate
void componentWillUpdate( object nextProps, object nextState )
Invoked immediately before rendering when new props or state are being received. This method is not called for the initial render.
Use this as an opportunity to perform preparation before an update occurs.
You cannot use
this.setState()
in this method. If you need to update state in response to a prop change, usecomponentWillReceiveProps
instead.
Please login to continue.