#Is there a way to debug _which code_ is changing a `ref`?
6 messages · Page 1 of 1 (latest)
Hey there @sharp kettle , could you please create a reproduction of your code, or just share a snippet?
I had a watcheffect buried down in a child @icy current
But my question was more general tbh
Had the same problem, temporarily did this and looked at the call stack. Not ideal, but...
const _variable = ref("some_value");
const variable = computed({
get: () => _variable.value,
set: nextValue => {
debugger;
_variable.value = nextValue;
}
});
I believe it has something to do with Hydration.