-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
const { container } = render(
<div>
<someLayeredComponent {...defaultProps} />
</div>,
)While rendering this element I would get this error
'Error: Uncaught [TypeError: Cannot read property 'host' of undefined]'
' console.error node_modules/react-dom/cjs/react-dom.development.js:17117
The above error occurred in the <Context.Consumer> component:
in Layer (created by Modal)
in Modal
Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.'
The error logged in unclear as it doesn't specify that the error comes from the usage if this library, nor it's mentioned that the component should be rendered as:
const { container } = render(
<LayersManager>
<someLayeredComponent {...defaultProps} />
</LayersManager>,
)Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers