SolidJSS
SolidJSโ€ข2y agoโ€ข
6 replies
qdwang

How to watch only one signal in createEffect?

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
?
Was this page helpful?