I grabbed the Elm DOM node and set innerHTML to empty. Is that correct? 
Should I be grabbing the parent of the Elm node and erasing the Elm node 
and adding it back to the DOM? Is there anything else I need to do to 
reverse the "embed" action?

I know this isn't typical. I am trying to keep my Elm app simple and not 
introduce a port and message to invoke reseting behavior for now. Instead, 
I am calling embed whenever I need a my Elm app displayed. In this way, I 
can just rely on the fact that the Elm app is started in a clean state 
every time it is displayed.

You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to