How would you go about fetching data to a slider[x] only when the slider index is visible? #345
Unanswered
TheManFromEarth1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
E,g, slider position is 5, but I don't want to start loading data inside the slider 5-component until slider 5 is visible.
I tried to log currentSlide with no success, but this variable is going to be deprecated anyway.
Couldn't I use isInViewport inside the component itself?
Or otherwise some new state for current Slider.
Beta Was this translation helpful? Give feedback.
All reactions