UNPKG
@cs-open/react-fabric
Version:
latest (0.0.14)
0.0.14
0.0.13
0.0.12
0.0.10
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
React Fabric
cs-open.github.io/react-fabric/
cs-open/react-fabric
@cs-open/react-fabric
/
dist
/
cjs
/
hooks
/
useDidUpdate.cjs
3 lines
(2 loc)
•
197 B
JavaScript
View Raw
1
2
3
"use strict"
;
var
u=
require
(
"react"
);
function
s
(
r,t
){
const
e=u.
useRef
(!
1
);u.
useEffect
(
()=>
{
if
(e.
current
)
return
r
();e.
current
=!
0
},t)}
exports
.
useDidUpdate
=s;
//# sourceMappingURL=useDidUpdate.cjs.map