Skip to content

Commit

Permalink
Remove useless events and useEffect block.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuznietsov committed Jun 29, 2021
1 parent 3b2ed6a commit fb7a16c
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ function RevealImageComponent({
}
}, [imgRef, handlers]);

useEffect(() => {
handlers.done();
return () => {
handlers.event({ name: 'destroy' });
};
}, [handlers]);

useEffect(() => {
updateImageView();
}, [parentNodeDimensions, updateImageView]);
Expand Down

0 comments on commit fb7a16c

Please sign in to comment.