The result of executing the function.
const a = atom(0);
const b = atom(0);
let foo = 0;
autorun(() => {
a.value;
untrack(() => {
b.value;
});
foo++;
});
console.log(a.value, b.value, foo); // 0 0 1
a.value++;
console.log(a.value, b.value, foo); // 1 0 2
b.value++;
console.log(a.value, b.value, foo); // 1 1 2
Executes the specified function while not tracking reactive items. This is useful for operations that access reactive items without actually depending on them.