N
Nuxt4mo ago
Alucardu

Nuxt infinity loading list based on pagination

Hello guys, I am trying to make an infinity loading list using API pagination, and I have problems with fetching data "the right way". In the end I need to refetch data. I was thinking that i can save all refresh function references into array, and then just call Promise.all with them, but the warning about "Component is already mounted, please use $fetch instead." gives me clear understanding that I am doing something wrong. I understand that composables shoud be called on top lvl of setup method, but in that case I always will have refresh function for the last page, when I need to refetch all pages fethched before too.
0 Replies
No replies yetBe the first to reply to this messageJoin