Skip to content

findCurrentEffectId

Walk up the context owner chain to find the nearest effect ID. Used to attribute reactive mutations to the effect that caused them.

import { findCurrentEffectId } from "@alloy-js/core";
function findCurrentEffectId(): number | undefined;
number | undefined