I have a componentWillReceiveProps method that contains 2 if conditions that determine if the method sets a new state or calls a function. The first
componentWillReceiveProps
if