Open MB2M opened 1 year ago
I just tested this PR locally and it's working. Thanks!
+1 This fixes the issue with React's StrictMode rerunning useEffects twice. lgtm
This needs to be merged. As things stand this library is unusable on an updated environment (React v18). Internally, we're forced to use a fork just to be able to use this library.
Listeners on "value" event were not remove on unmount + Unsubscribe functions were not called properly.