Module

rendering

// Unminified
import { registerRenderer, unregisterRenderer, scheduleRender }
  from 'https://fancy-pants.js.org/rendering.js';

// Minified
import { registerRenderer, unregisterRenderer, scheduleRender }
  from 'https://fancy-pants.js.org/min/rendering.js';

This is the global rendering cycle. It is built into the Component implementation but can also be used outside of a Component.

View Source rendering.js, line 1

Methods

# static registerRenderer(renderFn)

Parameters:
Name Type Description
renderFn function

the function to add to the operations queue

View Source rendering.js, line 22

# static scheduleRender()

Will schedule a render for the next microtask loop

View Source rendering.js, line 36

# static unregisterRenderer(renderFn)

Parameters:
Name Type Description
renderFn function

the function to remove from the operations queue

View Source rendering.js, line 29