I added the reattachment logic, so now if any handler changes - all are re-attached correspondingly.
It solves at least these 2 problems:
Development with hot module reloading was painful - the wrapper simply does not re-wire events if I has changed one
If someone implements a scenario when a handler is deliberately changed even in production, this component will not respect that change (which would lead to tricky-to-debug bugs)
I added the reattachment logic, so now if any handler changes - all are re-attached correspondingly.
It solves at least these 2 problems: