organism-react-ajax
Advanced tools
Comparing version 0.16.8 to 0.16.9
@@ -70,6 +70,12 @@ "use strict"; | ||
(0, _react.useEffect)(function () { | ||
setHref(getHref({ | ||
var nextHref = getHref({ | ||
href: propsHref, | ||
path: path | ||
})); | ||
}); | ||
if (href && (!nextHref || "#" === nextHref)) { | ||
return; | ||
} else { | ||
setHref(nextHref); | ||
} | ||
}, [propsHref, path]); | ||
@@ -134,2 +140,3 @@ var go = (0, _react.useCallback)(function (url) { | ||
go(e.currentTarget.href); | ||
setHref(e.currentTarget.href); | ||
} | ||
@@ -136,0 +143,0 @@ }; |
{ | ||
"version": "0.16.8", | ||
"version": "0.16.9", | ||
"name": "organism-react-ajax", | ||
@@ -4,0 +4,0 @@ "repository": { |
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
78733
2406