-
-
Notifications
You must be signed in to change notification settings - Fork 644
Open
Description
Flutter useSubscription hook is calling Platform.isAndroid even in the web runtime.
Steps to reproduce
- Create a flutter web app
- Add
grapqhl_flutter - Use the
useSubscriptionhook in a widget - Once the code is subscribed, turn off the network.
- Turn the network back on
- See the log
Screenshots
Expected behavior
dart:io's Platform class should never be used in the Flutter web context as dart:io is not available.
Offending code here
Happy to provide a reproducer project/app if you can point me to an open/free demo api with a subscription.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels