Currently, this component fires componentWillEnter on the new component before componentWillLeave is fired on a previous component. Meaning, it's entering the new component before the old one has left.
What's the purpose then of the componentDidLeave callback if it doesn't wait until the callback is fired before firing componentWillEnter on the new component? 🤷♂
Currently, this component fires
componentWillEnteron the new component beforecomponentWillLeaveis fired on a previous component. Meaning, it's entering the new component before the old one has left.What's the purpose then of the
componentDidLeavecallback if it doesn't wait until the callback is fired before firingcomponentWillEnteron the new component? 🤷♂