Skip to content

obsidian/Component

Mock of Obsidian’s Component, the base of everything with a load/unload lifecycle.

Class Description
Component Mock of Obsidian’s Component, with a working load/unload lifecycle. Loading loads children; unloading unloads children in reverse order, runs registered cleanups in reverse order (detaching DOM listeners and event refs, clearing intervals) and then calls Component.onunload.