Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: store('scope').update() ignores scope
Ensures that when calling `store('scope').update(...)`, that only items in scope are updated. Items out of scope are ignored. This code assumes the following: * `storedObjects` is an array with the exact same size as `objectsOrIds` * `objectsOrIds` is either a string, an object, a list of strings, or a list of objects * if `objectsOrIds` is not an array then it is a single string representing an id or a single object and, as a result, `storedObjects` will either be null or a single object * when attempting to find a single objectOrId, a single object is returned (rather than an array with one object) * every item returned by find() will have an id associated with it.
- Loading branch information