release

open fun release()

The contract is that in order to release a ComponentTree, you must do so from the main thread. Usually HostView will handle releasing, but if you never attach to a host view, then you should call release yourself.