Skip to content

Commit

Permalink
Failing invariant that legacyOneTimeQuery ID matches ObservableQuery.
Browse files Browse the repository at this point in the history
This invariant is expected to fail, and serves as a minimal regression
test for issue #8586.
  • Loading branch information
benjamn committed Aug 4, 2021
1 parent 117e721 commit b1b0b37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/QueryManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@ export class QueryManager<TStore> {
fetchPolicy: "network-only",
},
});
invariant(oq.queryId === queryId);
queryInfo.setObservableQuery(oq);
queries.set(queryId, oq);
});
Expand Down

0 comments on commit b1b0b37

Please sign in to comment.