Skip to content

Commit c6de382

Browse files
author
dirkwa
committed
docs(plugins): clarify explicit $source emission for excludeSelf
$source is not a field of the source object; it is a top-level update field the server preserves and otherwise derives from source. Reword so a plugin that supplies a source object sets a top-level $source equal to its plugin.id to match excludeSelf.
1 parent ff76144 commit c6de382

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/develop/plugins/deltas.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ app.handleMessage(plugin.id, {
232232
})
233233
```
234234

235-
If you do supply a `source` object, set its `$source` to your `plugin.id` explicitly so it matches. (See [Sending Deltas](#sending-deltas) below.)
235+
If you do supply a `source` object, also set a top-level `$source: plugin.id` on the update — the server keeps an explicit `$source` and only derives one from the `source` object when it is absent, so this guarantees the match. (See [Sending Deltas](#sending-deltas) below.)
236236

237237
## Sending Deltas
238238

0 commit comments

Comments
 (0)