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

Class Page

packages/angular-query/src/__tests__/zoneful-integration.test.ts:143–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141
142 it('completes dependent queries before application stability without manual effect flushing', async () => {
143 @Component({ template: '{{ second.data() }}' })
144 class Page {
145 first = injectQuery(() => ({
146 queryKey: ['zoneful-dependency-first'],
147 queryFn: async () => 'ready',
148 }))
149 second = injectQuery(() => ({
150 queryKey: ['zoneful-dependency-second'],
151 enabled: this.first.isSuccess(),
152 queryFn: async () => 'dependent data',
153 }))
154 }
155
156 const fixture = TestBed.createComponent(Page)
157 fixture.autoDetectChanges()

Callers

nothing calls this directly

Calls 4

injectQueryFunction · 0.85
injectQueriesFunction · 0.85
injectMutationFunction · 0.85
ComponentFunction · 0.50

Tested by

no test coverage detected