createScheduler
Summary
Creates the DOM update scheduler used by the component runtime.
Signature
function createScheduler(
doc: Document,
rootTarget: EventTarget,
styles: {
adoptServerStyles: (source: ServerStyleSource) => void;
dispose: () => void;
getGeneration: () => number;
has: (className: string) => boolean;
insert: (className: string, rule: string) => void;
remove: (className: string) => void;
reset: () => void;
},
): {
addEventListener: any;
dequeue: any;
enqueue: any;
enqueueCommitPhase: any;
enqueueTasks: any;
enqueueWork: any;
removeEventListener: any;
};
Params
doc
Document associated with the rendered tree.
rootTarget
Event target that receives runtime errors.
styles
Style manager used during reconciliation.
Returns
A scheduler instance.