boring-router-react
Advanced tools
Comparing version 0.3.11 to 0.3.13
@@ -10,3 +10,5 @@ "use strict"; | ||
exports.Link = mobx_react_lite_1.observer((props) => { | ||
let { to, params, replace, toggle = false, leave = false, onClick, ...restProps } = props; | ||
let { to, params, replace = false, toggle = false, | ||
// Do not provide `leave` option default value, check out its references. | ||
leave, onClick, ...restProps } = props; | ||
let store = mobx_react_lite_1.useLocalStore(props => { | ||
@@ -29,5 +31,3 @@ return { | ||
} | ||
// eslint-disable-next-line @magicspace/empty-line-around-blocks | ||
}, | ||
// eslint-disable-next-line @magicspace/empty-line-around-blocks | ||
get composedOnClick() { | ||
@@ -63,3 +63,2 @@ let { to, params, leave, toggle, replace, onClick } = props; | ||
], true); | ||
// eslint-disable-next-line @magicspace/empty-line-around-blocks | ||
}, | ||
@@ -66,0 +65,0 @@ }; |
@@ -26,5 +26,3 @@ "use strict"; | ||
} | ||
// eslint-disable-next-line @magicspace/empty-line-around-blocks | ||
}, | ||
// eslint-disable-next-line @magicspace/empty-line-around-blocks | ||
get matched() { | ||
@@ -34,3 +32,2 @@ let { exact = false } = props; | ||
return exact ? route.$exact : route.$matched; | ||
// eslint-disable-next-line @magicspace/empty-line-around-blocks | ||
}, | ||
@@ -37,0 +34,0 @@ }; |
{ | ||
"name": "boring-router-react", | ||
"version": "0.3.11", | ||
"version": "0.3.13", | ||
"description": "A type-safe MobX router with parallel routing support.", | ||
@@ -36,3 +36,3 @@ "repository": { | ||
}, | ||
"gitHead": "d2bdbf75c49c8ccee7ed4aeffe26455093788089" | ||
"gitHead": "94df3a5158da4fd804cb019a1cffb9bcdae0a9f9" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
54091
1125