MCPcopy
hub / github.com/angular/angular / recordKey

Function recordKey

packages/forms/signals/test/node/field_context.spec.ts:69–76  ·  view source on GitHub ↗
({key}: FieldContext<unknown, PathKind.Child>)

Source from the content-addressed store, hash-verified

67 it('key', () => {
68 const keys: string[] = [];
69 const recordKey = ({key}: FieldContext<unknown, PathKind.Child>) => {
70 try {
71 keys.push(key());
72 } catch (e) {
73 keys.push((e as Error).message);
74 }
75 return undefined;
76 };
77 const cat = signal({name: 'pirojok-the-cat', age: 5});
78 const f = form(
79 cat,

Callers

nothing calls this directly

Calls 2

keyFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…