web: in_memory_html/localstorage exception #717
Labels
⌛ reproduction needed
Issue is subtle and requires a true accessible reproduction to debug
👵 outdated
Outdated and will be closed soon unless reproduced on the latest beta
Seems that when initializing the cache, we try to stringify this FutureOr:
https://github.com/zino-app/graphql-flutter/blob/f12aae525b1bf7fd5c3120a3a62bccd87cabad68/packages/graphql/lib/src/cache/in_memory_html.dart#L16
which produces
masterKey="Instance of '_Future<String>'"
Later we try to find this key in localStorage:
https://github.com/zino-app/graphql-flutter/blob/f12aae525b1bf7fd5c3120a3a62bccd87cabad68/packages/graphql/lib/src/cache/in_memory_html.dart#L76
and we dont find it, but we try to
jsonDecode
it, which produces aInvalid argument: null
exceptiongraphql_flutter 3.0.1
flutter 1.31.0-9.1.pre
The text was updated successfully, but these errors were encountered: