From 744a1d58100d161de737f143808b8dc65bfca055 Mon Sep 17 00:00:00 2001 From: Alexey Volkov Date: Fri, 9 Jan 2026 13:02:10 +0200 Subject: [PATCH] Fix explanation of how to use path from y.event Correct me if I'm wrong, but from what I see in the code and how I observed it actually works, the traversal should start from yevent.currentTarget, not ydoc. --- api/y.event.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/y.event.md b/api/y.event.md index fdbe747..3ada48c 100644 --- a/api/y.event.md +++ b/api/y.event.md @@ -12,7 +12,7 @@ **** The transaction in which this event was created on. **`yevent.path: Array` **\ -**** Computes the path from the Y.Doc to the changed type. You can traverse to the changed type by calling `ydoc.get(path[0]).get(path[1]).get(path[2]).get( ..`. +**** Computes the path from the Y.Doc to the changed type. You can traverse to the changed type by calling `yevent.currentTarget.get(path[0]).get(path[1]).get(path[2]).get( ..`. **`yevent.changes.delta: Delta`**\ **** Computes the changes in the array-delta format. See more in the [Delta Format ](delta-format.md)section. The text delta is only available on Y.TextEvent (`ytextEvent.delta`)