Skip to content

Commit 94a6804

Browse files
authored
Update packages/api/src/providers/ActivityKeyer/ActivityKeyerComposer.tsx
1 parent 5bdd792 commit 94a6804

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/api/src/providers/ActivityKeyer/ActivityKeyerComposer.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ const ActivityKeyerComposer = ({ children }: Readonly<{ children?: ReactNode | u
4040

4141
const [activities] = useActivities();
4242

43+
// TODO: [P0] We should remove the mapping in favor of `localId`,
44+
// the id should represent the latest available activity in the stream
45+
//
4346
// Maps are intentionally mutable so the incremental fast path can append to them in-place.
4447
const activityIdToKeyMapRef = useRef<ActivityIdToKeyMap>(new Map());
4548
const activityToKeyMapRef = useRef<ActivityToKeyMap>(new Map());

0 commit comments

Comments
 (0)