Skip to content

Commit

Permalink
fix(@aws-amplify/datastore): Fix aws-amplify#5076 storage not re-init…
Browse files Browse the repository at this point in the history
…ialized after DataStorage.clear()
  • Loading branch information
yirako authored Mar 12, 2020
1 parent dae4824 commit d5fc927
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/datastore/src/datastore/datastore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,7 @@ async function clear() {

await storage.clear();

initialized = undefined;
storage = undefined;
sync = undefined;
}
Expand Down

0 comments on commit d5fc927

Please sign in to comment.