twobin / twobin/react-lazyload

Component isn't loaded but that component still runs and makes API calls

Open
#316 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.9k
Forks
485
PR merge metrics
No merged PRs in 30d

Description

I am using v2.6.2 in our project. We have a component that it's wrapping that makes an API call to get some data. I have 60 instances of this component on our page, hence the need for lazy loading. I can see in the DOM the lazyload component, and as I scroll they convert to my component (really neat btw) but I also see 60 API calls being made on the network tab. Is there a way to stop these components from running?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.