type SyncLoopRef = {
loop: LoopContextProps,
time: TimeContextProps,
version: {
frame: number,
rendered: number,
pending: boolean,
queued: boolean,
request: number | null,
},
dispatch: {
fibers: Set<LiveFiber<any>>,
render?: (timestamp?: number) => void,
renderChildren?: () => void,
},
children?:
| string
| number
| false
| LiveElement<ArrowFunction>[]
| ReactElementInterop
| ArrowFunction
| DeferredCall<ArrowFunction>
| LiveNode<any>[],
}
packages / workbench / src / queue / sync-loop.ts