beekai-oss / react-simple-img

🌅 React lazy load images with IntersectionObserver API and Priority Hints
MIT License
989 stars 41 forks source link

SSR: Prop `data-from-server` did not match #53

Closed neighborhood999 closed 5 years ago

neighborhood999 commented 5 years ago

Hi!

First, thanks for you create this awesome react component. I use this component in my next.js application and I got some error:

Warning: Prop data-from-server did not match. Server: "yes" Client: "no"

I reproduce this error on the Codesandbox, please toggle to the Console to check this error message.

Thank you & Have a good day.

bluebill1049 commented 5 years ago

Hey~!

Thank you for you kind words 🙏🏻i think i may have to remove this data-from-server logic... i will let you know, if i have an update on that.

Thanks for reporting the issue ❤️

many thanks bill

bluebill1049 commented 5 years ago

hey

i have removed the data-from-server.

https://github.com/bluebill1049/react-simple-img/releases/tag/v2.1.8

let me know if that have resolved your issue.

many thanks bill

neighborhood999 commented 5 years ago

Hey @bluebill1049, thank you for quick fix issue, I updated the package and issue be fixed, thank you.

bluebill1049 commented 5 years ago

謝謝 ❤️