ensureIsEmpty
Ensure that a context has an isEmpty ref, creating one if needed.
Only call this when you need to reactively observe isEmpty (e.g.,
ContentSlot). mapJoin does not call this — it uses an internal
empty-change callback directly so most slots never allocate a Ref at all.
import { ensureIsEmpty } from "@alloy-js/core";
function ensureIsEmpty(context: Context): Ref<boolean>;Parameters
Section titled “Parameters”| context | Context |
Returns
Section titled “Returns”Ref<boolean>