rumkin / pill

Add dynamic content loading to static sites with only 1 KiB of JS
https://rumkin.github.io/pill/
MIT License
383 stars 19 forks source link

Adds onUnmounting Hook #18

Closed tamb closed 4 years ago

tamb commented 4 years ago

There needs to be an unmounting hook for solving issues like preserving form state and the other hooks need access to the root Node to avoid unnecessary lookups. There's also an example of how to preserve form state, though that doesn't need to be merged