rax-image
Advanced tools
Comparing version 1.0.4-beta.1 to 1.0.4-beta.3
@@ -35,2 +35,3 @@ "use strict"; | ||
var imgRef = (0, _rax.useRef)(null); | ||
var isInitialMount = (0, _rax.useRef)(false); | ||
@@ -69,2 +70,9 @@ var onError = function onError(e) { | ||
(0, _rax.useEffect)(function () { | ||
if (!isInitialMount.current) { | ||
isInitialMount.current = true; | ||
} else { | ||
setSource(props.source); | ||
} | ||
}, [props.source.uri]); | ||
(0, _rax.useImperativeHandle)(ref, function () { | ||
@@ -71,0 +79,0 @@ return imgRef.current; |
{ | ||
"name": "rax-image", | ||
"version": "1.0.4-beta.1", | ||
"version": "1.0.4-beta.3", | ||
"description": "Image component for Rax.", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
22200
577
0