vue-lynx / useMainThreadRef
Function: useMainThreadRef()
Create a MainThreadRef — a ref whose .value is reactive (read-only) on
the Background Thread and whose .current is read-write on the Main Thread
inside worklet functions.
Type Parameters
Parameters
Returns
Example
Defined in
packages/vue-lynx/runtime/src/main-thread-ref.ts:113