mqtt-react-hooks
mqtt-react-hooks copied to clipboard
is Having a array of all topic for state is good ?
I was thinking that we can have an object or map for the state where we can take a topic as key in obj. This would be more configuration for the developer. We are having many topics that are only giving updates about something and old information is not needed. You can think of live views which is getting an update when a new user is joining and leaving but we just need to have current live views information for this.