Skip to content

Commit 6000bf4

Browse files
committed
fix(docs): tie signal history to the live graph's Angular version
Value history comes with the live graph, which needs Angular 20.1, so there is none before it. The sampling paragraph no longer claims anything about older versions, where the hook may or may not install.
1 parent 74e1b0f commit 6000bf4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/docs/src/content/inspectors/signals.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Angular doesn't send a value for `linkedSignal` nodes. The overlay takes it from
162162

163163
### Exact and sampled values
164164

165-
Exact **set** entries come from a hook on signal writes, which the overlay loads from `@angular/core/primitives/signals`. Before Angular 20.0 the hook doesn't say which signal was written, so the overlay doesn't install it. A webpack build (the `browser` builder) leaves that import to run time, where it fails. In both cases every entry is **sampled**. The overlay matches a write to a node by its name, kind, version and value. It samples everything else each time it reads the page, as **sampled** entries.
165+
The value history is part of the live graph, so it needs Angular 20.1 or later. Exact **set** entries come from a hook on signal writes, which the overlay loads from `@angular/core/primitives/signals`. A webpack build (the `browser` builder) leaves that import to run time, where it fails, so there every entry is **sampled**. The overlay matches a write to a node by its name, kind, version and value. It samples everything else each time it reads the page, as **sampled** entries.
166166

167167
In a development build, the Angular compiler names most signals for you. It adds a `debugName` to `signal()`, `computed()`, `linkedSignal()`, `input()`, `model()`, queries, `effect()`, `resource()` and `httpResource()` when the call initializes a class field, a `this.name =` assignment or a variable. The name is the field or variable name.
168168

0 commit comments

Comments
 (0)