mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-26 08:13:34 +08:00
refactor(Tabs2): switch to navigate
This commit is contained in:
@ -51,10 +51,10 @@ const Tab2: React.FC = () => {
|
||||
<br />
|
||||
<IonButton
|
||||
onClick={() => {
|
||||
history.push('/routing/tabs/settings/details/1', { routerOptions: { unmount: true } });
|
||||
navigate('/routing/tabs/settings/details/1');
|
||||
}}
|
||||
>
|
||||
Details with Unmount via history.push
|
||||
Details with Unmount via navigate
|
||||
</IonButton>
|
||||
</IonContent>
|
||||
</IonPage>
|
||||
|
Reference in New Issue
Block a user