Open
Description
Right now, the code uses the ref callback in React to get the node in order to embed the Elm component but after unmounting the callback gets called again, this time with null. This is by design https://facebook.github.io/react/docs/more-about-refs.html . The problem is that when it gets called with null it still tries to embed the Elm component throwing an error:
The component should either use some lifecycle method (like componentDidMount
) or do a null check.
Thoughts?
Metadata
Metadata
Assignees
Labels
No labels