Skip to content
Discussion options

You must be logged in to vote

Great questions.

When saying that it runs once per collection instead of per page, does this mean that it matches the underlying SQL instead of just the request body/params?

That's a lot simpler than that 😉. It simply adds the count value to the page param of its URLs, so the client will send it back to the server with the request, and the paginator will split the page value from the count value, reusing the same memoized value for all the pages.

Will two requests fetching posts for the same User but different page params, e.g. page=1 vs page=2, return the cached count value?

As I explained: the 2 requests will actually send back the count value to the server... so yes, the count is t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ddnexus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants