You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where lastMessage should be exhibited on an "Chat list" and allMessages on the open chat.
If I try to call refetch(() => chat.lastMessage.content) not only the last message cache will be mutated, but also the message on allMessages that previously was the lastMessage.
That is because (I think) there is no means to configure how should a new data be interpreted as new object or modification of an old object. But I guess the configured identifier could be used to handle this, right? If new object, don't mutate but create new object in place...
I don't have a reproduction right now, but tell me if you want me to build some for it or is it already handled somehow and the error is on my part.
Thanks
The text was updated successfully, but these errors were encountered:
Consider a schema:
Where
lastMessage
should be exhibited on an "Chat list" andallMessages
on the open chat.If I try to call
refetch(() => chat.lastMessage.content)
not only the last message cache will be mutated, but also the message onallMessages
that previously was thelastMessage
.That is because (I think) there is no means to configure how should a new data be interpreted as new object or modification of an old object. But I guess the configured
identifier
could be used to handle this, right? If new object, don't mutate but create new object in place...I don't have a reproduction right now, but tell me if you want me to build some for it or is it already handled somehow and the error is on my part.
Thanks
The text was updated successfully, but these errors were encountered: