There have been some previous discussions here about that. Search for “unmount”. This one has a suggested technique. I think it’s probably 0.18, haven’t re-read it in detail to check. But may give you ideas.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Unmountable Elm programs | 9 | 2759 | August 5, 2018 | |
| Subscriptions bug when unmounting elm apps | 1 | 902 | May 14, 2018 | |
| What is the Elm 0.19 equivalent of Navigation.modifyUrl | 3 | 982 | December 6, 2018 | |
| Fullscreen Elm App in 0.19 (childNode issue) Reopened | 25 | 5735 | March 5, 2019 | |
| Elm 0.19: Html.programWithFlags | 6 | 4311 | September 6, 2018 |