Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible Unhandled Promise Rejection(id: 0): TypeError: No default value #60

Open
Ananthakr opened this issue Oct 30, 2018 · 0 comments

Comments

@Ananthakr
Copy link

This happens only in android without remote js debug.

Here is my store:

class UserStore {

  @observable
  token = null;

  @observable
  location = null;

  @observable
  mobile_number = null;

  @action.bound
  updateToken(token = "") {
    this.token = token;
  }

  @action.bound
  updateLocation(location) {
    this.location = location;
  }

  @action.bound
  updateMobileNumber(mobile_number) {
    this.mobile_number = mobile_number;
  }
}

class RootStore {
  @persist("object")
  @observable
  userStore = new UserStore();
}

Here is hydrate call

 hydrate("userStore", this.props.store, {
      token: null,
      location: null,
      mobile_number: null
    }).then(() => {
      console.log("UserStore obtained");
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant