Last active
April 19, 2016 12:14
-
-
Save josephj/d947c39cd93cc5b86224895262afc8fb to your computer and use it in GitHub Desktop.
Redux Store Proposal for Stackla
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.