()
| 769 | let resolvePromise: (value: unknown) => void = () => undefined |
| 770 | |
| 771 | const customFetchData = () => { |
| 772 | const promise = new Promise((resolve) => { |
| 773 | resolvePromise = resolve |
| 774 | }) |
| 775 | // Resolve the promise in initial fetch |
| 776 | // because we are awaiting the query first time |
| 777 | if (isInitialFetch) { |
| 778 | resolvePromise('string') |
| 779 | } |
| 780 | isInitialFetch = false |
| 781 | return promise |
| 782 | } |
| 783 | |
| 784 | await queryClient |
| 785 | .query({ |
no test coverage detected