Late reply but a simple example
const a = createSignal(1); const b = createComputed(() => a.value * 3); createEffect(() => logEffect(`A is ${a.value} and B is ${b.value}`)); a.value = 2;
This effect runs three times, not two - because update to a triggers update to b which triggers effect but also update to a itself triggers effect too
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Late reply but a simple example
This effect runs three times, not two - because update to a triggers update to b which triggers effect but also update to a itself triggers effect too