How to use the spaniel.scheduleWork function in spaniel

To help you get started, we’ve selected a few spaniel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hummingbird-me / hummingbird-client / app / components / paginated-resource / infinite.js View on Github external
_setupViewport() {
    const element = get(this, 'element');
    spaniel.scheduleWork(() => {
      get(this, 'watcher').watch(element, () => {
        get(this, 'getNextData').perform();
      });
    });
  },

spaniel

LinkedIn's viewport tracking library

Apache-2.0
Latest version published 6 months ago

Package Health Score

62 / 100
Full package analysis

Popular spaniel functions