message: fix issue with state deletion
diff: @@ -12,6 +12,7 @@ import { StoreContext } from "../../models"
  import { color } from "../../theme"
  import { Token } from "../../utils/token"
  import { getGraphQlUri } from "../../utils/api_uri"
  +import { ROOT_STATE_STORAGE_KEY } from "../../models/RootStore"
  const styles = EStyleSheet.create({
  button: {
  @@ -20,8 +21,13 @@ const styles = EStyleSheet.create({
  },
  })
  -export const resetDataStore = () => {
  - AsyncStorage.clear() // use storage.ts wrapper
  +export const resetDataStore = async () => {
  + try {
  + await AsyncStorage.multiRemove([ROOT_STATE_STORAGE_KEY]) // use storage.ts wrapper
  + // TOKEN_KEY is stored at a separate location
  + } catch(e) {
  + console.tron.log(`error resetting RootStore: ${e}`)
  + }
  }
  export const DebugScreen = observer(({}) => {
  @@ -57,7 +63,7 @@ export const DebugScreen = observer(({}) => {
  return (
  <Screen preset="scroll" backgroundColor={color.transparent}>
  <Button
  - title="Delete account and log out"
  + title="Delete account and log out (TODO)"
  onPress={async () => {
  resetDataStore()
  if (new Token().has()) {
  @@ -84,7 +90,7 @@ export const DebugScreen = observer(({}) => {
  }}
  />
  <Button
  - title="Log out"
  + title="Delete token / log out"
  onPress={async () => {
  await new Token().delete()
  Alert.alert("log out completed. Restart your app")
  