Skip to content

Instantly share code, notes, and snippets.

@josephj
Last active April 19, 2016 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephj/d947c39cd93cc5b86224895262afc8fb to your computer and use it in GitHub Desktop.
Save josephj/d947c39cd93cc5b86224895262afc8fb to your computer and use it in GitHub Desktop.
Redux Store Proposal for Stackla
{
"app": {
"stack": "fixtures"
},
"reports/index": {
"data": {
"reports": []
},
"didInvalidate": false,
"isFetching": false,
"lastUpdated": 14789065,
"orderBy": "created_at",
"orderByDirection": "asc",
},
"reports/network": {
"data": {
"tileSummaries": []
},
"didInvalidate": false,
"lastUpdated": 14789065,
"isFetching": false,
"selectedOptions": {}
},
"tags/index": {
"data": {
"tags": []
},
"isFetching": false,
"didInvalidate": false,
"lastUpdated": 14789065
},
"terms/index": {
"data": {
"terms": []
},
"isFetching": false,
"didInvalidate": false,
"lastUpdated": 14789065
},
"widgets/edit": {
"data": {
"widget": {}
},
"isFetching": false,
"didInvalidate": false,
"lastUpdated": 14789065,
"orderBy": "created_at",
"orderByDirection": "asc"
},
"widgets/index": {
"data": {
"widgets": []
},
"isFetching": false,
"didInvalidate": false,
"lastUpdated": 14789065,
"orderBy": "created_at",
"orderByDirection": "asc",
},
"widgets/new": {
"data": {
"widgetTypes": []
},
"isFetching": false,
"didInvalidate": false,
"lastUpdated": 14789065,
"orderBy": "created_at",
"orderByDirection": "asc"
},
}
@josephj
Copy link
Author

josephj commented Apr 19, 2016

It's the Redux store planning proposal for my company. Each first level property is a RESTful route and also has a mapping reducer. Data fetched from API server resides under the data property. All other properties are for page state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment