How to use the fastdom.clear function in fastdom

To help you get started, we’ve selected a few fastdom 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 salesforce-ux / design-system / site / assets / scripts / shared / sticky.js View on Github external
setState(nextState) {
    fastdom.clear(this.layoutId);
    this.state = Object.assign({}, this.state, nextState);
    this.layoutId = fastdom.mutate(() => this.layout());
  }
github nitin42 / Animated-Timeline / src / core / batchMutations.js View on Github external
export const emptyScheduledJobs = () => {
  fastdom.clear(readId)
  fastdom.clear(writeId)
}
github salesforce-ux / design-system / site / assets / scripts / shared / shapes.js View on Github external
setState(nextState) {
    fastdom.clear(this.layoutId);
    this.state = Object.assign({}, this.state, nextState);
    this.layoutId = fastdom.mutate(() => this.layout());
  }
github salesforce-ux / design-system / site / assets / scripts / shared / sticky.js View on Github external
    this.scheduledLayouts.forEach(job => fastdom.clear(job));
    this.state = Object.assign({}, this.state, nextState);
github nitin42 / Animated-Timeline / src / core / batchMutations.js View on Github external
export const emptyScheduledJobs = () => {
  fastdom.clear(readId)
  fastdom.clear(writeId)
}
github qgrid / ng2 / core / services / fastdom.js View on Github external
        return Fastdom.invoke(() => fastdom.clear(...args));
    }

fastdom

Eliminates layout thrashing by batching DOM read/write operations

MIT
Latest version published 9 months ago

Package Health Score

66 / 100
Full package analysis

Similar packages