Hello, I'm referring to your code for a react project I'm working on.
What are the pros and cons of placing the socket in the reducer and defining message callbacks in there? This would allow any component that needs a reference to the socket to be able to get to the socket if they need to.
best,
Hello, I'm referring to your code for a react project I'm working on.
What are the pros and cons of placing the socket in the reducer and defining message callbacks in there? This would allow any component that needs a reference to the socket to be able to get to the socket if they need to.
best,