Skip to content

Commit

Permalink
docs: remove extra anonymous function in preview docs
Browse files Browse the repository at this point in the history
Co-authored-by: Roland Groza <[email protected]>
  • Loading branch information
benjamin-musil and rolandjitsu committed Jan 10, 2022
1 parent d50c578 commit 9fdf503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/previews/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function Previews(props) {
</div>
));

useEffect(() => () => {
useEffect(() => {
// Make sure to revoke the data uris to avoid memory leaks
files.forEach(file => URL.revokeObjectURL(file.preview));
}, [files]);
Expand Down

0 comments on commit 9fdf503

Please sign in to comment.