Closed MonoidMusician closed 1 year ago
Example to reproduce it with:
D.button
((D.OnClick := _) <<< (log :: String -> Effect Unit) <$>
oneOfMap bang ["You should", "only see", "this last one"]
)
[ text_ "Useless machine" ]
Thanks @MonoidMusician !
eventListener
creates a new reference (that's why it's inEffect
), distinct from old ones, so we need to store the result of that instead of the callback we passed to it