mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-04-28 03:29:59 +00:00
perf: scope message equality check to content+parts instead of full object (#842)
This commit is contained in:
parent
1c230b66b4
commit
cfd587ed2a
1 changed files with 3 additions and 3 deletions
|
|
@ -27,9 +27,9 @@ export function areUIMessageArraysEqual(
|
|||
return false
|
||||
}
|
||||
|
||||
// Compare the entire message using JSON serialization as a fallback
|
||||
// This handles all properties including parts, toolInvocations, etc.
|
||||
if (JSON.stringify(msgA) !== JSON.stringify(msgB)) {
|
||||
if (msgA.content !== msgB.content) return false
|
||||
|
||||
if (JSON.stringify(msgA.parts) !== JSON.stringify(msgB.parts)) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue