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

When I call storage.load with no ID, an empty object is passed to my sync method. Why? #33

Closed
sbefort opened this issue Aug 10, 2016 · 0 comments

Comments

@sbefort
Copy link

sbefort commented Aug 10, 2016

If I run the code below, an object is passed to my sync method with resolve and reject. But if I omit the ID (in this case 1001), the object passed to the sync method is empty. Why?

storage.load({
    key: 'upoolActiveSports',
    id: 1001,
}).then(result => {
    console.log(result);
    this.setState({sports: result});
}).catch(err => {
    console.warn(err);
}).done(() => {
    this.setState({loading: false});
});
@sbefort sbefort closed this as completed Aug 10, 2016
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