Replies: 1 comment
-
data transformation is something you have to handle for yourself. If your api returns nested data and you don't like that, you have to unfold it somewhere. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
hey there
was wondering if there was a way to return one page and concatenate all the incoming pages as one array.
Encountered this issue after playing around with Github's Graphql API and it can return nested arrays which get harder to iterate over and handle pagination with every level.
With one level of depth, I created a custom function in the select option to merge them into one array,
I did this mostly because I also wanted the ability to filter through all the results, which didn't work predictively when trying to filter through nested arrays so i had to combine them into one
but when requesting something like a list of branches and the most recent commits to them, it returns a deeply nested field which would be easier to deal with if react query returned it as one page.
kind regards
Beta Was this translation helpful? Give feedback.
All reactions