import { dir, parse } from "../core.js";
import { untracked } from "../signal.js";
import { setter } from "../store.js";
dir('ref', (el, state, expr) => (
typeof parse(expr)(state) == 'function' ?
v => v.call(null, el) :
(setter(expr)(state, el), _ => _)
))