-
Notifications
You must be signed in to change notification settings - Fork 24
Home
Amir Ariffin edited this page Mar 11, 2019
·
6 revisions
app: {
isSignedIn: <bool>,
isStartupDone: <bool>,
isWebsocketOnline: <bool>
},
authorization: {
country_code: <string>
phone_number: <string>,
token: <string>
},
messages: {
allIds: [<string>, ...],
byId: {
<string>: {
message: <string>,
sender: {
country_code: <string>,
phone_number: <string>
}
},
...
}
},
profile: {
userName: <string>
}
- It shouldn't mutate any action
- It shouldn't filter any action
- It can dispatch
n
actions for any action - It can complex contain state logic
- For logging errors, place pure string log before logging the error event
- This will make string search for debugging purposes more robust
- Prepend log with
__XXX__
whereXXX
is the log type - Always use
console.log
for logging