1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-30 10:29:48 +02:00

make identical references warning text more useful

This commit is contained in:
Ian Storm Taylor
2016-11-18 10:40:39 -08:00
parent a4cbceddf4
commit fd2900aba5

View File

@@ -104,7 +104,7 @@ class Node extends React.Component {
if (!IS_DEV || !Immutable.is(nextProps.node, this.props.node)) {
return true
} else {
warn('Encountered different references for identical node values in "shouldComponentUpdate". Check that you are preserving references for the following node:\n', nextProps.node)
warn('Encountered different references for identical node values in "shouldComponentUpdate". Check that you are preserving references for the following node:\n', nextProps.node.toJS())
}
}