Skip to content

Instantly share code, notes, and snippets.

@jamesplease
Last active February 15, 2018 16:42
Show Gist options
  • Save jamesplease/d3083d1a700783347db80538cae88c6a to your computer and use it in GitHub Desktop.
Save jamesplease/d3083d1a700783347db80538cae88c6a to your computer and use it in GitHub Desktop.
{
type: 'UPDATE_RESOURCES',
resourceTypes: {
books: {
resources: [{}, {}, {}],
meta: [{}, {}, {}],
lists: {
favorites: [ ... ]
}
},
authors: {
resources: [{}, {}, {}],
meta: [{}, {}, {}],
lists: {
new: [ ... ]
},
mergeMeta: false
}
}
mergeResources: false
}
{
type: 'UPDATE_RESOURCES',
resources: {
books: [{}, {}, {}],
authors: [{}, {}, {}]
},
meta: {
books: [{}, {}, {}],
authors: [{}, {}, {}]
},
lists: {
books: {
favorites: [ ... ]
},
authors: {
new: [ ... ]
}
},
mergeResources: false,
mergeMeta: {
authors: false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment