Skip to content

Commit

Permalink
fix(cache): don't use super.read in denormalizedRead so OptimisticCac…
Browse files Browse the repository at this point in the history
…he overrides it's behavior
  • Loading branch information
micimize committed May 29, 2019
1 parent c4fba99 commit 38d3588
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/graphql/lib/src/cache/normalized_in_memory.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class NormalizedInMemoryCache extends InMemoryCache {
/// *WARNING* if your system allows cyclical references, this will break
dynamic denormalizedRead(String key) {
try {
return Traversal(_denormalizingDereference).traverse(super.read(key));
return Traversal(_denormalizingDereference).traverse(read(key));
} catch (error) {
if (error is StackOverflowError) {
throw NormalizationException(
Expand Down
1 change: 0 additions & 1 deletion packages/graphql/lib/src/core/observable_query.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ enum QueryLifecycle {
SIDE_EFFECTS_PENDING,
SIDE_EFFECTS_BLOCKING,

// right now only Mutations ever become completed
COMPLETED,
CLOSED
}
Expand Down

0 comments on commit 38d3588

Please # to comment.