Wait until for next.
yarn add @jswork/next-wait-until
import '@jswork/next-wait-until';
nx.waitUntil({
timeout: 1000,
interval:200,
condition: function () {
return window.$;
},
change: function (status) {
console.log('change', status);
},
done: function () {
console.log('done');
},
fail: function () {
console.log('fail/timeout');
},
always: function () {
console.log('always');
},
complete: function () {
console.log('complete');
}
});
Code released under the MIT license.