S
SolidJS10mo 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
qdwangOP10mo ago
Thank you for this info
Alex Lohr
Alex Lohr10mo ago
Or the opposite, untrack.
lil uzi crit
lil uzi crit10mo 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
REEEEE10mo ago
You could bring it up in #docs and provide feedback on what you think could be improved

Did you find this page helpful?