WatchFragment method in the GraphQLCache class #1422
ReziaBanks
started this conversation in
Ideas
Replies: 2 comments
-
The ferry package has the exact method I'm talking about -> https://pub.dev/documentation/ferry/latest/ferry/Cache/watchFragment.html |
Beta Was this translation helpful? Give feedback.
0 replies
-
I also run into this. Within the PagedSliverList it would be nice to just watch a few fragments instead of having to re-render the entire list all the time |
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
-
I'm currently working on a flutter project that requires infinite scroll pagination basically in every single page. I decided to use the infinite_scroll_pagination package as it makes the entire development easy.
Using the package with the graphql package has been an issue because readFragment function doesn't return Stream.
The issue with the code above, is that it won't react to writeFragment changes. Eg (user liked a post)
With the addition of a watchFragment method I can wrap the AppPostCard in a StreamBuilder and that would solve the issue.
Beta Was this translation helpful? Give feedback.
All reactions