Interface TemplateRenderer<E>

Defines a template renderer

interface TemplateRenderer<E> {
    asynchronous: boolean;
    reactive: boolean;

Type Parameters

  • E


asynchronous: boolean

Whether or not vertices are rendered asynchronously, or in the current event loop. The vanilla renderer and certain other library integrations such as Angular and Vue2 or not asynchronous. But Vue3 and React 18 are.

reactive: boolean

Whether or not the Surface can expect the renderer to detect data model changes that require a refresh of a given vertex's DOM representation. For vanilla and Svelte this is false; all the other library integrations set this to true.