createEffect not re-runing when value in accessors are changed
The createEffect in the print is not re-running when prop accessor is changed, is this some problem to reactivity? What i want is to run the effect everytime the param accessors are changed.

14 Replies
how and what do you pass to the adjustments prop
Ok, somehow i don't know what i changed but worked out. But i have another question, is there a way to run this effect, by having dependencies? like in react, or i HAVE to use the accessors somehow?
what do you consider dependencies ?
the accessor is a dependency
Yes but, this works because im using in console log, i mean, is there a way to do this without console logs?
can you give me an example of what you are trying to do
in react you pass a list of dependencies
want to be calling a re-draw canvas function everytime prop.adjustments() changes. basically thats it
and your canvas is inside your component
can you show a little bit more code
i want the effect to rerun without having to console log, by depending on adjustments

i mean of the component
this should work
it works, thats not the question im asking now, i want a way to do this WITHOUT console.log, got it?
ok I get you now
you can do
props.adjustments()
or use the on()
inside the effectlike in react you do useEffect(fn, [dependencies])
if you have more than one dependency
import on from 'solid-js'
Worked out, thanks! didn't know
on