React-helmet crashes with the hook useEffect
Hi. I was just trying out hooks for the first time and I noticed that when I use Helmet on a component that has the hook useEffect, it crashes with maximum call stack size exceeded error: ``` Uncaught RangeError: Maximum call stack size exceeded at isUndefinedOrNull (index.js:27) at objEquiv (index.js:44) at push../node_modules/deep-equal/index.js.module.exports (index.js:23) at objEquiv (index.js:96) at push../node_modules/deep-equal/index.js.module.exports (index.js:23) at objEquiv (index.js:96) at push../node_modules/deep-equal/index.js.module.exports (index.js:23) ... ``` I fixed the issue by using props on the Helmet component, instead of using children. Before: ``` <Helmet> <title>test</title> </Helmet> ``` After: ``` <Helmet title="test" /> ``` Any ideas why this is happening? Seems to be related to #373 Thanks.
Posted by raRaRa on Feb 7, 2019, 10:54 AM
Tags
Related issues
- struct's lifetime requirements can be bypassed via covariant field assignment
- Proposal to Reorganize the Moderation Team and Review Moderation Policies
- Progressive FPS degradation appears to be related to dota2.com — blocking the domain prevents the performance loss
- proposal: container/...: generic collection types
- Better Custom Endpoint BYOK
- A concrete policy for backward compatibility until Godot 5.0
Raise real-world problems, find people facing the same issue, and discuss solutions.4,000 issues0 comments
github (Other)
struct's lifetime requirements can be bypassed via covariant field assignment
Proposal to Reorganize the Moderation Team and Review Moderation Policies
Progressive FPS degradation appears to be related to dota2.com — blocking the domain prevents the performance loss
proposal: container/...: generic collection types
Better Custom Endpoint BYOK
A concrete policy for backward compatibility until Godot 5.0
New MTP models not supported
Tracking: 429 / Capacity Issues
React-helmet crashes with the hook useEffect
Hi. I was just trying out hooks for the first time and I noticed that when I use Helmet on a component that has the hook useEffect, it crashes with maximum call stack size exceeded error: ``` Uncaught RangeError: Maximum call stack size exceeded at isUndefinedOrNull (index.js:27) at objEquiv (index.js:44) at push../node_modules/deep-equal/index.js.module.exports (index.js:23) at objEquiv (index.js:96) at push../node_modules/deep-equal/index.js.module.exports (index.js:23) at objEquiv (index.js:96) at push../node_modules/deep-equal/index.js.module.exports (index.js:23) ... ``` I fixed the issue by using props on the Helmet component, instead of using children. Before: ``` <Helmet> <title>test</title> </Helmet> ``` After: ``` <Helmet title="test" /> ``` Any ideas why this is happening? Seems to be related to #373 Thanks.
Comments (0)
No comments yet. Start the discussion.