瀏覽代碼

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

Yichen Jiang 1 月之前
父節點
當前提交
9836fdbbd7
共有 1 個文件被更改,包括 3 次插入 和 3 次删除
  1. 3 3
      packages/session/session-projection/src/index.ts

+ 3 - 3
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.
  * Change-feed listener: one unit's served value changed for one session.
  * `value` is the schema-validated `view` output; `seq` is the unit's
  * `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
  * 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 = (
 export type ProjectionChangeListener = (
   session: Session,
   session: Session,