We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be11b4c commit acdaabcCopy full SHA for acdaabc
packages/graphql/lib/src/core/fetch_more.dart
@@ -34,11 +34,11 @@ Future<QueryResult<TParsed>> fetchMoreImplementation<TParsed>(
34
final data = fetchMoreOptions.updateQuery(
35
previousResult.data,
36
fetchMoreResult.data,
37
- )!;
+ );
38
39
fetchMoreResult.data = data;
40
41
- if (originalOptions.fetchPolicy != FetchPolicy.noCache) {
+ if (originalOptions.fetchPolicy != FetchPolicy.noCache && data != null) {
42
queryManager.attemptCacheWriteFromClient(
43
request,
44
data,
0 commit comments