Elastic Search useSWR Pagination when page index is defined in the body, not working #2170
Unanswered
theProgrammerSleigh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Need some help folks, trying to paginate Elastic Search requests with useSWRInfinite.
Elastic wants pages defined in the body of a POST request, and I figured I would try something out to see if it works with useSWR but my data is constantly coming back as null/undefined. Help me swr discussions tab, you're my only hope.
Here's some code snippets
My React, the stringified results are just for me to quickly reference the json structure and are temporary.
Any ideas what I could do to get this to work?
Beta Was this translation helpful? Give feedback.
All reactions