Disposable event emitter, use Set to manage listeners
Component
SceneOptions
Readonly
Show DOM and update props one-time
Basic usage
await scene.show({ text: 'new' }); // show with new propsawait scene.show(); // show with default props Copy
await scene.show({ text: 'new' }); // show with new propsawait scene.show(); // show with default props
Add close task as Microtask if is caled in the frame else next rAF.
Emit event listeners
Remove event listener
Add event listener
Add one-time event listener, can not be removed manually
Disposable event emitter, use Set to manage listeners