Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 21, 2022 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/8f3a640fc26e52496f215f5d6cb660d5 to your computer and use it in GitHub Desktop.
Save velotiotech/8f3a640fc26e52496f215f5d6cb660d5 to your computer and use it in GitHub Desktop.
Subscription(   options: SubscriptionOptions(     document: gql(counterSubscription),   ),   builder: (result) {     if (result.hasException) {       return Text("Error occurred: " + result.exception.toString());     }‍     if (result.isLoading) {       return Center(         child: const CircularProgressIndicator(),       );     }‍     return ResultAccumulator.appendUniqueEntries(         latest: result.data,         builder: (context, {results}) => ...     );   }),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment