-
Notifications
You must be signed in to change notification settings - Fork 654
Closed
Description
I've experienced some call-too-deep errors, and I think somehow React is introducing circular references and then deep-equal follows them.
I worked around this like so:
import {isEqual} from 'lodash'
// Helmet uses deep-equal and sometimes crashes on circular objects
Helmet.prototype.shouldComponentUpdate = function(nextProps) {
return !isEqual(this.props, nextProps)
}
It seems to work - lodash has circular reference protection.
Oliboy50, Volune, Tom-Bonnike, wilf312, ElForastero and 9 moreOliboy50, dom-suitable, wilf312, fortinmike, hansott and 4 more
Metadata
Metadata
Assignees
Labels
No labels