Using react query to distribute state when using with web sockets - TanStack