79179394

Date: 2024-11-11 23:26:50
Score: 1
Natty:
Report link

I think your on the right track, you could read through https://tkdodo.eu/blog/using-web-sockets-with-react-query and see if you could improve it. Probably I would just set up the central useEffect subscription to invalidate the queries we need instead of faffing about with the functions in appState.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: DogPawHat