Closed mikecx closed 2 years ago
+1
I've opened a pull request that fixes the error by not having it returned from the utils.js getFilteredProps
method which means it won't be spread on img.js lines 123-133 and then subsequently on line 164.
@mikecx thanks for contributing, your MR request has been merged and released a new version.
We're seeing the follow error in development when using the
lazyLoading
property on<Img />
tags.The simplified version of the code looks like the following:
I've created a super basic codesandbox.io sample to show the issue. You'll have to put your own token in the token field for it to actually show the image. Once it's loaded, open the codesandbox console and you'll see the same React warning.
https://codesandbox.io/s/cool-currying-cdvqu?file=/src/App.js