Skip to content

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

@scotttrinh

Description

@scotttrinh

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
  });

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions