2 ms·
For that kind of thing, rather than tightly coupling it to your React tree, you should have components that sanely handle each possible state (no connection, co
by crooked-v 6y ago
For that kind of thing, rather than tightly coupling it to your React tree, you should have components that sanely handle each possible state (no connection, connected but no data yet, new data available, stale cached data available, etc), then have separate handling for the socket stuff that updates data via a global store like Redux.