Native SectionList support for useInfiniteQuery #1993
Unanswered
shamilovtim
asked this question in
General
Replies: 1 comment
-
I don't know what SectionList from React Native expects, but I doubt that it doesn't work with react-query. I also don't quite understand this:
|
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.
-
useInfiniteQuery uses a
page
object key by default for each page. This key doesn't conform to what React Native expects for SectionList. That seems like an acknowledged fact since the docs give an example of a double nestedmap
in order to iterate over the infiniteQuery. I think having a customizable key instead ofpage
would be nice, so we aren't having to manage 2D array mutations and re-renders. In addition, some sort of native support for flatlist/sectionlist is necessary. Some apps do require the performance improvements of these components and they shouldn't be disregarded.Beta Was this translation helpful? Give feedback.
All reactions