Skip to content

Commit 4445b2f

Browse files
committed
Make default before/afterLoad functions not to return any value
1 parent d9e9826 commit 4445b2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/LazyLoadImage.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ LazyLoadImage.propTypes = {
148148
};
149149

150150
LazyLoadImage.defaultProps = {
151-
afterLoad: () => null,
152-
beforeLoad: () => null,
151+
afterLoad: () => ({}),
152+
beforeLoad: () => ({}),
153153
className: '',
154154
height: 0,
155155
placeholder: null,

0 commit comments

Comments
 (0)