(
host: ReactiveControllerHost,
private readonly filters: Accessor<Omit<QueryFilters, 'fetchStatus'>> = {},
queryClient?: QueryClient,
)
| 17 | private unsubscribe: (() => void) | undefined |
| 18 | |
| 19 | constructor( |
| 20 | host: ReactiveControllerHost, |
| 21 | private readonly filters: Accessor<Omit<QueryFilters, 'fetchStatus'>> = {}, |
| 22 | queryClient?: QueryClient, |
| 23 | ) { |
| 24 | super(host, 0, queryClient) |
| 25 | |
| 26 | if (!queryClient) { |
| 27 | return |
| 28 | } |
| 29 | |
| 30 | this.queryClient = queryClient |
| 31 | this.result = this.computeValue() |
| 32 | } |
| 33 | |
| 34 | protected override onConnected(): void { |
| 35 | if (!this.syncClient()) { |
nothing calls this directly
no test coverage detected