fix: maintain consistent sort of stream members
This commit is contained in:
@@ -45,6 +45,11 @@ export function usePresencePositions(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sort each segment's presence list by humanId for stable render order
|
||||||
|
for (const presenceList of result.values()) {
|
||||||
|
presenceList.sort((a, b) => a.humanId.localeCompare(b.humanId));
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}, [playbackMarkers, children, networkHumans, currentUserId]);
|
}, [playbackMarkers, children, networkHumans, currentUserId]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user