Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Destroy hook in plugin for hotReload #1471
What problem does this feature solve?
So far it is only possible for a plugin to be registered through a single function. On the other hand it is not possible to hook into a plugins destroy/replacement.
But given the plugin example which registers event handlers on the
I'm not sure if this is a general problem with a HMR system (like webpack's) or if its caused by the
What does the proposed API look like?
Either additional methods exposed by the plugin (similar to this):
Or as a store instance method:
The latter wouldn't introduce breaking changes of the plugin API.