Disposing Setters When Components Are Unmounted
Disposing Setters When Components Are Unmounted
are unmounted
This basic implementation has a serious issue: What happens if
we unmount AnotherComponent? we would still have two setter
functions registered under store.setters and when the store state
gets updated, React would complain about we trying to set the
state of an unmounted component.