Skip to content

afeiship/next-wait-until

Repository files navigation

next-wait-until

Wait until for next.

version license size download

installation

yarn add @jswork/next-wait-until

usage

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');
  }
});

license

Code released under the MIT license.