DEV Community

Discussion on: How can I limit an object size before it is looped in vue/nuxt?

Collapse
 
kissu profile image
Konstantin BIFERT

The solution for that is to use pagination and fetch the data in blocks (like 10 or 20 elements) on each call, that way you don't over-fetch.
If you slice on your client, you will add more load on your client's browser and you will spend time fetching data you don't even need.

PS: don't use index for your :key, it's counter-productive.