Creates a side effect in Alien Signals.
The type of the effect value.
A function that will run whenever its tracked signals update.
The created effect object.
const countSignal = createSignal(1);createEffect(() => { console.log('Count is', countSignal.get());}); Copy
const countSignal = createSignal(1);createEffect(() => { console.log('Count is', countSignal.get());});
Creates a side effect in Alien Signals.