Skip to content

Commit

Permalink
fix: use case else instead of detached or suspended
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Nov 17, 2019
1 parent 42e28d1 commit 9fb5aab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/graphql_flutter/lib/src/widgets/cache_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ class _CacheProviderState extends State<CacheProvider>
client.cache?.save();
break;

case AppLifecycleState.detached:
break;

case AppLifecycleState.resumed:
client.cache?.restore();
break;

default:
break;
}
}

Expand Down

0 comments on commit 9fb5aab

Please sign in to comment.