Read Me
Installation
npm install standard-resourceyarn add standard-resourceQuick Start
import createResourceStore from 'standard-resource';
const store = createResourceStore();Last updated
npm install standard-resourceyarn add standard-resourceimport createResourceStore from 'standard-resource';
const store = createResourceStore();Last updated
store.update('resources.books.24', {
attributes: {
name: 'The Lord of the Rings',
},
});console.log(store.getResources('books', ['24']));
// [
// {
// id: '24',
// attributes: { name: 'Lord of the Rings' },
// meta: {},
// computedAttributes: {}
// }
// ]