Closed finnfiddle closed 6 years ago
Hey Finn,
I think this is a great idea!.. I just feel funny about the name "destroy" as this feels very catastrophic to the users.
What if we change destroyHabitats
to unmountHabitats
? I think unmount sounds better and also kinda explains what will happen.
Let me know what you think.
sounds reasonable - I made the change
This is now available in v0.6.0
I am quite possibly doing something wrong but I found that my components on different pages of my PHP app were not being unmounted when changing pages. Using
this.dispose()
was removing the Bootstrapper as well so I couldnt manually unload the mounted components so I had to hack it like this:Which seemed to fixed my problem. And I thought this might be useful for others too to be included in the API.