API Reference
This section provides detailed documentation for all the functions and types exported by the reactive-proxy-state library.
Core APIs
reactive- Create reactive proxy objectsref- Create reactive references for primitive valuescomputed- Create derived reactive statewatchEffect- Run and automatically re-run functions when dependencies changewatch- Watch specific reactive sources for changesupdateState- Apply state change events to objectsmarkRaw- Flag an object so it is never made reactive
Integrations
trackVueReactiveEvents- Emit RPS StateEvents from Vue 3 reactivityElectron Bridge- Loop-safe bi-directional sync for Electron
Helper Functions
isRef- Check if a value is a ref objectunref- Unwrap a ref to get its inner valuetoRefs- Convert reactive object properties to individual refsisReactive- Check if an object is a reactive proxytoRaw- Retrieve the original (unproxied) object from a reactive proxytoRef- Create a ref linked to a property on an objecttriggerRef- Manually trigger effects that depend on a refdeepClone- Deep-clone any value with cycle detectiondeepToRaw- Convert reactive/ref structures into plain, clone-safe datatraverse- Recursively access every property to establish reactive deps (used internally by watch)isComputed- Check if a value is a computed ref
Type Definitions
Ref<T>- Type for ref objectsComputedRef<T>- Type for computed refsWritableComputedRef<T>- Type for writable computed refsWatchSource<T>- Type for sources that can be watchedWatchEffect- Type for watch effect handlersWatchOptions- Type for watch optionsStateEvent- Type for state change events