updateCachedData((draft) => { draft = response; }
I'm using updateCachedData function and through this function i'm updating my cached but problem is when it update cache all the users listen it. But I want to update a specific user only.like sender person and receiver person.
I'm using updateCachedData function within socket.on function and JSON server for API