mobx-router-3
Advanced tools
Comparing version 0.0.11 to 0.0.12
{ | ||
"name": "mobx-router-3", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "A simple router for MobX", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -27,8 +27,9 @@ import { observable, computed, action, toJS } from 'mobx'; | ||
rootViewChanged && this.currentView && this.currentView.beforeExit | ||
? (await this.currentView.beforeExit( | ||
? await this.currentView.beforeExit( | ||
this.currentView, | ||
currentParams, | ||
store, | ||
currentQueryParams | ||
)) | ||
currentQueryParams, | ||
nextPath | ||
) | ||
: true; | ||
@@ -41,8 +42,9 @@ if (beforeExitResult === false) { | ||
rootViewChanged && view.beforeEnter | ||
? (await view.beforeEnter( | ||
? await view.beforeEnter( | ||
view, | ||
currentParams, | ||
store, | ||
currentQueryParams | ||
)) | ||
currentQueryParams, | ||
nextPath | ||
) | ||
: true; | ||
@@ -60,3 +62,4 @@ if (beforeEnterResult === false) { | ||
store, | ||
currentQueryParams | ||
currentQueryParams, | ||
nextPath | ||
); | ||
@@ -63,0 +66,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35651
685