S
SolidJS15mo ago
qdwang

How to watch only one signal in createEffect?

createEffect(() => {
console.log(a(), b());
});
createEffect(() => {
console.log(a(), b());
});
a and b are from two signals, createEffect will watch both of them. Is it possible to watch only a while access the value of b?
5 Replies
qdwang
qdwangOP15mo ago
Thank you for this info
Alex Lohr
Alex Lohr15mo ago
Or the opposite, untrack.
lil uzi crit
lil uzi crit15mo ago
The docs reference page is so abstract and non-straightforward. This short explanation is far more clear. Is this somethingt that I should commit to the docs?
REEEEE
REEEEE15mo ago
You could bring it up in #docs and provide feedback on what you think could be improved

Did you find this page helpful?