Problems with views infinite scroll

Created on 16 April 2022, almost 3 years ago
Updated 10 December 2024, about 1 month ago

Problem/Motivation

Hi,

I have quick tabs which has 3 tabs and each tab shows a view which displays content.
Each of the view in the quick tabs also has "views infinite scroll" enabled with auto load. (this means views loads more content
automatically when user scrolls down)
The quick tabs setting is "Yes: Load only the first tab on page view"

So when the user opens the page, the active tab views content is loaded as defined in the views (load only first 5 results)
Then user scrolls down, and more content is loaded. That works fine.
Then user clicks the second tab, and that content is loaded, now comes the problem when user starts to scroll down the second tab:
when user is currently on the second tab (or any other than the first or already opened), and starts scrolling down
also the first tab (or any other non active once opened tab) content starts to load all of its results.
So user scrolls down the second tab content and same time also all the
first tab content is loaded, all of the results till the defined pager if defined in views.
The reason is maybe because views infinity scroll does not know which tab the user is currently looking.
I do not know how this could be solved, but I guess there should be something fired when clicking a tab
that it would tell the infinite scroll not to load any other tab content.

This is annoying problem because it makes infinity scroll unusable with this module if you have more than
one views which both have infinity scroll and auto load on.

if this would work, would be so great and efficient way building like social media site.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Postponed: needs info

Version

4.0

Component

Documentation

Created by

🇫🇮Finland jukka792

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024