Query .onNext()Wait for events using promises instead of callbacksquery-on-nextcomponentQuerypage.jsEventsonNext() returns a Promise that resolves when the event fires, enabling async/await patterns["query","events","onnext","promise","async","await"].onNext()Example