Skip to content

Commit 837af44

Browse files
AleksanderBodurriAndrewKushnir
authored andcommitted
refactor(core): introduce debugName optional arg to ReactiveNode (angular#57710)
This commit contains the changes to core/primitives that used to be in angular#57073. PR Close angular#57710
1 parent 6976349 commit 837af44

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

goldens/public-api/core/primitives/signals/index.api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export interface ReactiveNode {
8181
// (undocumented)
8282
consumerMarkedDirty(node: unknown): void;
8383
consumerOnSignalRead(node: unknown): void;
84+
debugName?: string;
8485
dirty: boolean;
8586
lastCleanEpoch: Version;
8687
liveConsumerIndexOfThis: number[] | undefined;

packages/core/primitives/signals/src/graph.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ export interface ReactiveNode {
179179
* Called when a signal is read within this consumer.
180180
*/
181181
consumerOnSignalRead(node: unknown): void;
182+
183+
/**
184+
* A debug name for the reactive node. Used in Angular DevTools to identify the node.
185+
*/
186+
debugName?: string;
182187
}
183188

184189
interface ConsumerNode extends ReactiveNode {

0 commit comments

Comments
 (0)