I am trying to study React Navigation from the documentation and have read this quote
When going back from B to A, componentWillUnmount of B is called, but componentDidMount of A is not because A remained mounted the whole time.
Here is my question: Why was the WillUnmount called for the B component, but the WillUnmount was not called for the A component?
I know it is for the performance, but what pages are the WillUnmount calls for, and which pages are the WillUnmount calls not?