Loading...
Observe the changes of a reference using MutationObserver
Observe mutations using a callback
Reflects mutations in a state
import { useMutationObserver, useMutationObserverState } from "@atomico/hooks/use-mutation-observer";
useMutationObserver( ref: Ref<Element>, observe: MutationCallback, config?: MutationObserverInit );
const mutations:MutationRecord[] = useMutationObserverState( ref: Ref<Element>, config?: MutationObserverInit );