Open wallslide opened 1 year ago
Internal ticket number is FE-3288
Possibly relevant detail. This behavior was happening when all the data fit into a single page. I wasn't able to test if data that spanned multiple pages works because of https://github.com/fauna/faunadb-js/issues/680
When using
PageHelper.nextPage()
(code here), the final page isn't handled correctly. Internally, the helper fails to mutate its state if theafter
cursor isundefined
. This meansnextPage()
endlessly repeats querying and returning the final page rather than indicating that there are no more pages left.