REDUX-SHRINKWRAP
Contribution Guide
Just make sure to use conventional commits.
Release process
make push
Notes
const state = {
resources: {
stacks: {
stack1: {
id: 'stack1',
type: 'stacks',
attributes: {
name: 'Stackshack',
description: 'Best stack in the world',
},
relationships: {
user: {
data: {
id: 'user1',
type: 'users'
}
},
shirts: {
data: [{
id: 'shirt1',
type: 'shirts',
}, {
id: 'shirt2',
type: 'shirts'
}]
}
},
$meta: {
isLoaded: null,
isLoading: null,
isError: null,
isNull: null,
isTried: null,
timestamp: new Date(),
},
$links: {
self: 'http://link.to?self'
}
}
}
},
queries: {
products: {
'/?query=angular&limit=3': {
queryId: '/?query=angular',
queryType: 'products',
results: [
{
id: 'product1',
type: 'products',
},
{
id: 'product2',
type: 'products',
},
{
id: 'product3',
type: 'products',
},
],
$meta: {
get: {
isLoaded: true,
isLoading: false,
isError: false,
isEmpty: !payload.data.length,
timestamp: new Date().getTime(),
},
next: {
isLoaded: true,
isLoading: false,
isError: false,
isEmpty: !payload.data.length,
timestamp: new Date().getTime(),
},
previous: {
isLoaded: true,
isLoading: false,
isError: false,
isEmpty: !payload.data.length,
timestamp: new Date().getTime(),
}
},
$links: {
next: 'http://link.to?next-page-of-results',
previous: 'http://link.to?previous-page-of-results',
}
}
}
}
}