From 9836fdbbd7e5124ea5878c9adcf8110de8f5c9a2 Mon Sep 17 00:00:00 2001 From: Yichen Jiang Date: Mon, 31 Aug 2026 14:44:16 +0800 Subject: [PATCH] docs(session-projection): describe the change feed by its viewKey token --- packages/session/session-projection/src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/session/session-projection/src/index.ts b/packages/session/session-projection/src/index.ts index 7053fbaf13..4df77d911a 100644 --- a/packages/session/session-projection/src/index.ts +++ b/packages/session/session-projection/src/index.ts @@ -98,9 +98,9 @@ export interface ProjectionDefinition< * Change-feed listener: one unit's served value changed for one session. * `value` is the schema-validated `view` output; `seq` is the unit's * watermark at emission (the seq of the event that caused the change). A - * changed state whose raw `view` output is `Object.is`-identical to the - * unit's previous projection does not fire, so a unit can buffer working - * fields in state behind an identity-stable projection. + * changed state whose `viewKey` token (default: the raw `view` output) is + * `Object.is`-identical to the previous state's does not fire, so a unit can + * buffer working fields in state behind an identity-stable projection. */ export type ProjectionChangeListener = ( session: Session,