@ionic/react
Advanced tools
@@ -9,2 +9,3 @@ import type { AnimationBuilder } from '@ionic/core/components'; | ||
| back: (animationBuilder?: AnimationBuilder) => void; | ||
| navigateRoot: (pathname: string, animationBuilder?: AnimationBuilder) => void; | ||
| canGoBack: () => boolean; | ||
@@ -39,2 +40,9 @@ nativeBack: () => void; | ||
| /** | ||
| * Navigates to a new root pathname, clearing the navigation history and unmounting all previous views. | ||
| * After navigation, canGoBack() will return false. Useful for navigating to a new root after login/logout. | ||
| * @param pathname - The path to navigate to | ||
| * @param animationBuilder - Optional - A custom transition animation to use | ||
| */ | ||
| navigateRoot(pathname: string, animationBuilder?: AnimationBuilder): void; | ||
| /** | ||
| * Determines if there are any additional routes in the Router's history. However, routing is not prevented if the browser's history has more entries. Returns true if more entries exist, false if not. | ||
@@ -41,0 +49,0 @@ */ |
@@ -14,2 +14,3 @@ import type { AnimationBuilder } from '@ionic/core/components'; | ||
| onNavigate: (path: string, action: RouteAction, direction?: RouterDirection, animationBuilder?: AnimationBuilder, options?: any, tab?: string) => void; | ||
| onNavigateRoot: (pathname: string, animationBuilder?: AnimationBuilder) => void; | ||
| onSetCurrentTab: (tab: string, routeInfo: RouteInfo) => void; | ||
@@ -16,0 +17,0 @@ onChangeTab: (tab: string, path: string, routeOptions?: any) => void; |
+2
-2
| { | ||
| "name": "@ionic/react", | ||
| "version": "8.8.1-dev.11774273905.1c3b9598", | ||
| "version": "8.8.1-dev.11774384072.1e807ca8", | ||
| "description": "React specific wrapper for @ionic/core", | ||
@@ -43,3 +43,3 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@ionic/core": "8.8.1-dev.11774273905.1c3b9598", | ||
| "@ionic/core": "8.8.1-dev.11774384072.1e807ca8", | ||
| "ionicons": "^8.0.13", | ||
@@ -46,0 +46,0 @@ "tslib": "*" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1023678
0.27%4402
0.48%+ Added
- Removed