-
Notifications
You must be signed in to change notification settings - Fork 373
Constant Loading When in Tabs #93
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
Comments
Okay, I will disable attempt load when this component is invisible in the next version, thanks! |
Hi @19peaches , I have been released a new version |
Works perfectly now .... thanks so much. |
You are welcome! |
It's looks like you broke scrolling. I have In |
@ymatuhin what is your situation that use the container which has 0 width and height as the scroll wrapper? |
My container has positive width and height. |
I see, recommend you use the |
I tried, but it didn't help me. |
Maybe instead |
@ymatuhin oh, I thought we had been discussing |
Version 2.2.0
Vue.js version 2.4.2
What is expected?
I have a news viewer component that has 2 tabs, one for latest articles and one for tweets.
Ideally I'd like to use the infinite-loading for both tabs, but when I tried scrolling was detected on both instances since the tab content exists on the same page, so I opted to just use it on the tweets tab since there is far more content.
What is actually happening?
When the tweets tab is not active the infinite scroll component just massively loads over and over. No loaded state is ever triggered. If I set the tweets tab to active on page load, I get proper loading initially, but once I change tabs ... massive loading again.
How to reproduce this problem?
My code looks like so:
I'm using Laravel 5.4 as my API which returns a LengthAwarePaginator so I have access to current_page, last_page etc.
I tried the
infinite-wrapper
approach which caused the component to either fail completely, or constantly load as always, no change basically.Thanks
The text was updated successfully, but these errors were encountered: