MCPcopy Index your code
hub / github.com/TanStack/table / Test

Class Test

packages/angular-table/tests/lazy-init.test.ts:91–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90 test('should support required signal input', async () => {
91 @Component({
92 standalone: true,
93 template: `{{ call }} - {{ lazySignal.data() }}`,
94 changeDetection: ChangeDetectionStrategy.OnPush,
95 })
96 class Test {
97 readonly title = input.required<string>()
98 call = 0
99
100 lazySignal = lazyInit(() => {
101 this.call++
102 return {
103 data: computed(() => this.title()),
104 }
105 })
106 }
107
108 const fixture = TestBed.createComponent(Test)
109

Callers

nothing calls this directly

Calls 1

lazyInitFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…