So, if using the IonReactRouter
in your Ionic React app, do note that the Page/component does not get unmounted when navigating to another component.
This is by design, per the discussion here: ionic-team/ionic-framework#20543
Confusing, but good to know!