Ivan Liang

Results 2 comments of Ivan Liang

You can replace `off` with `removeListener`

@fractal-joe Sorry this is kinda hazy from a month ago but: https://github.com/VictorHAS/mqtt-react-hooks/blob/859fbe5f316b8500abb0d59aa84114376ec18978/lib/useSubscription.tsx#L43 `off()` is an alias for event emitter method `removeListener()`. I forget exactly how or why, but something about...