I have a virutal-list working fine but in the same page/view I have another button that opens a second page with another virtual list
When the second page opens, it’s writing the list in the previous view instead of the second one.
How can I add an identify to avoid that?>
First Virtual list:
var virtualList = app.virtualList.create({
// List Element
el: '.virtual-list',
etc...
Second Virtual list
var virtualList_chat = app.virtualList.create({
// List Element
el: ‘.virtual-list’,
etc…
Just add another unique class to your virtual-list element (here: virtual-list-chat) and reference that in list initialization. Otherwise your app won’t know which one to work on.