-
Notifications
You must be signed in to change notification settings - Fork 46
Conversation
@@ -234,7 +234,7 @@ export default connect( | |||
payload: Array.from({ length: 10000 }).map((_, i) => i) | |||
}), | |||
addFunction: () => ({ type: 'ADD_FUNCTION' }), | |||
addSymbol: () => ({ type: 'ADD_SYMBOL' }), | |||
addSymbol: () => ({ type: Symbol('ADD_SYMBOL') }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add window.
here - just to make eslint happy
@@ -92,6 +92,6 @@ export default { | |||
) : state, | |||
addFunction: (state=null, action) => action.type === 'ADD_FUNCTION' ? | |||
{ f: FUNC } : state, | |||
addSymbol: (state=null, action) => action.type === 'ADD_SYMBOL' ? | |||
addSymbol: (state=null, action) => action.type === Symbol('ADD_SYMBOL') ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here too
@@ -48,7 +48,7 @@ export default class ActionListRow extends Component { | |||
isInFuture && 'actionListFromFuture' | |||
], isSelected, action)}> | |||
<div {...styling(['actionListItemName', isSkipped && 'actionListItemNameSkipped'])}> | |||
{action.type} | |||
{action.type !== null && action.type.toString()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest something like this:
action.type === null ?
'<NULL>' :
(action.type.toString() || '<EMPTY>')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks great. Will change now. Thanks for the review!
Even though Redux warns when having |
It just reimplements gaearon/redux-devtools-log-monitor#29 and also supports
null
as action type per gaearon/redux-devtools-log-monitor#55.There's still an error in the demo, coming from
redux-logger
, as it doesn't support symbols.