MCPcopy Create free account
hub / github.com/TanStack/query / App

Class App

packages/angular-query/src/__tests__/upstream-issues.test.ts:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49 it('#9910: a template signal read does not prevent whenStable from seeing success', async () => {
50 @Component({ template: '{{ query.isSuccess() }}' })
51 class App {
52 query = injectQuery(() => ({
53 queryKey: ['9910'],
54 queryFn: () => Promise.resolve([1, 2, 3, 4, 5]),
55 }))
56 }
57 const fixture = TestBed.createComponent(App)
58 fixture.autoDetectChanges()
59 await fixture.whenStable()

Callers

nothing calls this directly

Calls 5

signalFunction · 0.90
injectQueryFunction · 0.85
injectMutationFunction · 0.85
ComponentFunction · 0.50
setQueryDataMethod · 0.45

Tested by

no test coverage detected