-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
[LiveComponent] Forever Scroll #1585
Comments
We actually talk about this topic in here #1515 😁 |
It's not quite the same, because I would like when I scroll it to display the rest of the data. here is an example,
I retrieve the list of all my products, I have 2000 I do not want it to load my 2000 products. |
I have a demo incoming next week to show you how to do that. If you cannot wait i can send you some quick explanation. |
Hello @smnandre, Yes, I would like a quick explanation if you have 5 minutes. |
I will post there a short example |
Good morning @smnandre |
I'm working on it during my launch break.. ;) You can look this upcoming demo: https://github.com/smnandre/ux/tree/site/demo-infinite-scroll https://127.0.0.1:8000/demos/live-component/infinite-scroll Look in "InfiniteCollection" template / component The idea is to have a custom id for the current page and add data-live-ignore For the following pages always add a And wrap all this with an id you'll change when the "context" change (there, the search query). Sorry i don't have more time right now, but i'll answer later if you have some questions. |
But just to complete the @smnandre answer the most important line is this one: https://github.com/smnandre/ux/blob/dedc2aa0f4aaeabbe834149b774998e5ad27a8bf/ux.symfony.com/templates/components/InfiniteCollection.html.twig#L24 |
Hello friends, Just to inform you that I will be waiting for version 2.17 of live component. I think it will be simpler. |
@ag-erwan Happy if that helped you :) I'll try to publish it soon-ish, but bug fixes/features always take priority over demos.. Regarding 2.17, I anticipate it could be around the end of the month (without any guarantee) |
If you need, you always can use |
Hello team
For privacy rights, I haven't put the real code, but this is a summary of the code I made. |
Good morning,
I would like to be able to create a system with Live component to be able to load 50 data on the page and when scrolling 50 other data appear. Or an infinite data load
How to do it knowing that the data I display with ux live component precisely
The text was updated successfully, but these errors were encountered: