updateCacheData for specific user only

Issue

This Content is from Stack Overflow. Question asked by Shahriar

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



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?