docs(session-projection): describe the change feed by its viewKey token

This commit is contained in:
Yichen Jiang 2026-08-31 14:44:16 +08:00 • committed by imccyu
parent acc23f6d9c
commit 9836fdbbd7

View file

@ -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,