Let's say we're tweening opacity, and setting "display: getTweeningValue === 0 ? 'none' : 'block'". We have something we only want to call after opacity goes from 0 to >0, but since tweenState mutates state, we can't use prevState in componentDidUpdate.
Sorry for the awkward title.
Let's say we're tweening opacity, and setting "display: getTweeningValue === 0 ? 'none' : 'block'". We have something we only want to call after opacity goes from 0 to >0, but since tweenState mutates state, we can't use prevState in componentDidUpdate.
Any ideas?