createCommentReactionId
The id of one user's reaction to one comment, derived from the (comment, user, emoji) triple rather than random, so the same triple always addresses the same record and two tabs converge instead of racing to create duplicates. The sync authorizer leans on this, so it must be injective: all three parts are URI-encoded before joining, so a : in any of them can't shift the boundary and collapse two triples onto one id.
function createCommentReactionId(
commentId: TLCommentId,
userId: string,
emoji: string,
): TLCommentReactionId;Parameters
| Name | Description |
|---|---|
| |
| |
| |
Returns
Prev
createCommentReactionNext
createCommentThread