I have an application including several tabs. One of the tabs includes a card that is rendered conditionally as it needs to wait from data to be obtained in the tab hook useIonViewWillEnter.
The card is correctly rendered but their methods
useIonViewWillEnter are not fired. It happens at the first load and at page reload. The method are correctly fired when switching between tabs. React lifecycle method
useEffect is always fired.
Here is a minimal example of my code. If conditional render is avoided, the methods are correctly fired in any case.
I would expect methods
useIonViewWillEnter to fire at every render. Should it be that way?