S
SolidJS5mo 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
qdwangOP5mo ago
Thank you for this info
Alex Lohr
Alex Lohr5mo ago
Or the opposite, untrack.
lil uzi crit
lil uzi crit5mo 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
REEEEE5mo 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