mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-30 18:39:51 +02:00
make identical references warning text more useful
This commit is contained in:
@@ -104,7 +104,7 @@ class Node extends React.Component {
|
|||||||
if (!IS_DEV || !Immutable.is(nextProps.node, this.props.node)) {
|
if (!IS_DEV || !Immutable.is(nextProps.node, this.props.node)) {
|
||||||
return true
|
return true
|
||||||
} else {
|
} 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())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user