Skip to content

trackFutureChange

const trackFutureChange: (…params) => void

Mark that a tracked change is about to occur. Updates the useChangesTrackerStore so subscribers see the new lastChangeName / lastChangeTimestamp.

Wrapped with withOptionalFunctionPlugins, so plugins can decorate it via registerFunctionDecorator keyed 'trackFutureChange' to observe or transform every change before it reaches the store.

…[string, object]

Optional metadata about the change.

void