S
SolidJS2mo 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
qdwang2mo ago
Thank you for this info
Alex Lohr
Alex Lohr2mo ago
Or the opposite, untrack.
lil uzi crit
lil uzi crit2mo 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
REEEEE2mo ago
You could bring it up in #docs and provide feedback on what you think could be improved
Want results from more Discord servers?
Add your server