// 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.
Methods
# static registerRenderer(renderFn)
Parameters:
Name | Type | Description |
---|---|---|
renderFn |
function | the function to add to the operations queue |
# static scheduleRender()
Will schedule a render for the next microtask loop
# static unregisterRenderer(renderFn)
Parameters:
Name | Type | Description |
---|---|---|
renderFn |
function | the function to remove from the operations queue |