mqtt-react-hooks icon indicating copy to clipboard operation
mqtt-react-hooks copied to clipboard

is Having a array of all topic for state is good ?

Open Enigma10 opened this issue 4 years ago • 0 comments

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.

Enigma10 avatar Mar 16 '21 16:03 Enigma10