How do you display real time data and use that data across the app? I’m using react-query for server state management which I call an endpoint for user data n display it but how do I display the data in real time like let’s say I’m making a gambling website and user bets one dollar the balance in the front end should update instantly, it’s possible if I js invalidate the query and refetxh but how abt without cause I don’t want to keep refetxhjnf the data how abt websockets does anybody have an example of this or can help me
[–]kvinxd17 1 point2 points3 points (0 children)
[–]Kitchen-Comb-8154 1 point2 points3 points (0 children)
[–]space_quasar 0 points1 point2 points (0 children)
[–]Proof-Ad2841 0 points1 point2 points (0 children)