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

Support passing back an object on multi-getItem lookup #124

Open
scotttrinh opened this issue Jul 19, 2016 · 0 comments
Open

Support passing back an object on multi-getItem lookup #124

scotttrinh opened this issue Jul 19, 2016 · 0 comments

Comments

@scotttrinh
Copy link
Owner

At the moment, you can get multiple items back from localForage by passing an array to the getItem method. That will return an array of values indexed to the key. It would be nice to be able to support getting back an object with keys, like how $q.all works. Something like:

$localForage.getItem({
  someKey: 'someKey',
  differentObjectKey: 'someOtherKey'
})
  .then(({someKey, differentObjectKey}) => {
    // Do something with someKey and differentObjectKey here
  });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant