mqtt-react-hooks
mqtt-react-hooks copied to clipboard
fix: replace useSubscription hook with createSubscription factory
In order to provide stateful subscriptions that don't get reset with every message receipt, there needs to be a separation of subscription components
BREAKING CHANGE: useSubscription no longer exists. use createSubscription instead.
fix #54