rkit / react-select2-wrapper

Wrapper for Select2
MIT License
163 stars 97 forks source link

Reattaching event handlers if some has changed #29

Closed zerkms closed 8 years ago

zerkms commented 8 years ago

I added the reattachment logic, so now if any handler changes - all are re-attached correspondingly.

It solves at least these 2 problems:

  1. Development with hot module reloading was painful - the wrapper simply does not re-wire events if I has changed one
  2. 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)
rkit commented 8 years ago

Thanks! Today will be release.

rkit commented 8 years ago

I released a new version (0.5.2)