Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REACT-LAZYLOAD PLACE HOLDER NOT RENDER #382

Open
Trung229 opened this issue May 14, 2022 · 3 comments
Open

REACT-LAZYLOAD PLACE HOLDER NOT RENDER #382

Trung229 opened this issue May 14, 2022 · 3 comments

Comments

@Trung229
Copy link

Hi everyone,

I am trying to use react-lazyload library to optimize performance, but i get an error that it keeps returning all the data for me(it doesn't show placeholder), not wait until I scroll down to render data, i did Tried many ways but still can't fix it, hope you guys can help me

This is my code:

image

This is my DOM:
image

My react version:

  • react: 18.1.0
  • react-lazyload: ^3.2.0

Thank you

Trung

@matthewsteedman
Copy link

Use This package it might be better than what you currently using or trying to achieve

https://github.com/twobin/react-lazyload

@Trung229
Copy link
Author

Hi @matthewsteedman,

Thanks for your reply,

Im using this package which you say, but it gives me error like I said above

@prijithvrgs90
Copy link

@Trung229 Please use this :

<LazyLoad once overflow height={200} offset={[-100, 100]} >

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants