Skip to main content
Version: 0.1.1

Variable: REACTIVE_ACCESSOR_MARKER

Imported from @react-logic/state

const REACTIVE_ACCESSOR_MARKER: typeof REACTIVE_ACCESSOR_MARKER

Brand used by @react-logic/core's useLogic tracking pass to recognise plain-function wrappers that internally subscribe to alien-signals signals — computedState's dual getter/setter, fetchState (in @react-logic/utils), and any future reactive accessor. alien-signals' isComputed/isSignal only match its own bind-produced functions, so without this brand the framework would skip the field and never subscribe to its updates.

Use Symbol.for so the contract crosses package boundaries without an import: any package can mark its wrappers with this brand, and core recognises them uniformly.