So, I am writing a logic where react state is having an array with multiple object with its key value. and from third party socket data comes and I have to check within the