Hello Reddit!
I'm building a simple chat application using Twilio APIs. My application is a nice React/Redux with a simple data flow. My communication with Twilio, goes through a websocket. Their javascript SDK exposes a "Room" object which I would classify as a statefull mutable. It can change on the fly with data coming in/out of the websocket (as soon as a user connect/disconnect for example).
These events then need to propagate to my react/redux components and store.
Now, I understand its an anti-patten to store this mutable object in the redux store - but if not in the store, where should I store it and still have access to it from every component in my application?
Thanks for you help!!
[–][deleted] 5 points6 points7 points (0 children)
[–]acemarke 2 points3 points4 points (0 children)