createResourceStore
Arguments
Returns
Example
import createResourceStore from 'standard-resource';
const store = createResourceStore();
store.update('resources.books.24', {
attributes: {
name: 'Lord of the Rings',
},
});
console.log(store.getResources('books', ['24']));
// [
// {
// id: '24',
// attributes: { name: 'Lord of the Rings' },
// meta: {},
// computedAttributes: {}
// }
// ]Last updated