Answer the question
In order to leave comments, you need to log in
How to load next page data?
Need to make a pokemon app using pokeapi. And when you click on the Next button, you need to display the data of the next page.
the next page data needs to be obtained (data.next). How can this be done in Vuex? Do I need to create a separate action and a new axios request?
Answer the question
In order to leave comments, you need to log in
No "next" page is needed here. Store the number of the current page and the number of elements on the page, calculate the value of the offset parameter based on this data. When you need the next - do +1 to the current one.
Do I need to create a separate action...
Do I need to create a separate action and a new axios request?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question