How to determine pagination direction
I'm trying to do manual pagination over a collection returned from Apollo GQL using Relay-style pagination.
I'm trying to figure out how to determine if
but currently I can't avoid calling
I'm trying to figure out how to determine if
nextPage() or previousPage() was called so I know whether or not to call the fetchMore function. When users page backwards, I simply offset the data accordinglybut currently I can't avoid calling
fetchMore on any pagination action because I have no way to know if I went backwards or forwards.