1
votes

I developed a spring boot 2 with webflux backend and now I have to integrate the frontend part. My handler return a Flux using paging. What i can't understand is how frontend could know about the number of pages available. If I return Page I have all the information needed, but with flux? I can't do a count before because it's against the reactive programming. so how can I manage a "reactive pagination" in frontend side?

1

1 Answers

0
votes

if you are using Pageable in your Spring Boot app you'll have some helpful metadata in your response as:

  • The pages number
  • Rows in each page
  • The current page
  • ...etc

So like that with using some tools in the frontend you'll be able to navigate between pages.