-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Description
I apologize in advance if this is an inappropriate venue for this type of question.
I am building a React/Redux app that needs a globally available object (a websocket lib instance). I originally tried to store this in the Redux state tree, however, the instance is not immutable and it caused lots of problems with hot reloading during development (tons of circular reference errors that don't exist when running from compiled code).
My question is how to store/create this instance so that it is available to my Redux code and React components? I could create it at the very top of the component tree and pass it down the tree as a prop, but that feels very "dirty" after doing everything with react-redux connect.
Is there a better way to do this?
matthlavacka, adamlibusa, gushuro and HirenParekh
Metadata
Metadata
Assignees
Labels
No labels