Open texastoland opened 1 year ago
I was just reading your Vue bindings! Maybe they could be simplified by manually triggering a ref without the reactive proxy 👀
reactive
export function enableVueBindings({ shallowRef, triggerRef }) { // Vue namespace customCreateAtom = (name, onBecomeObserved) => { onBecomeObserved?.() const ref = shallowRef() return { reportObserved: () => ref.value // read reportChanged: () => triggerRef(ref) // write }; }; customReaction = undefined // automatic in Vue }
Totally untested 😅
I was just reading your Vue bindings! Maybe they could be simplified by manually triggering a ref without the
reactive
proxy 👀Totally untested 😅