What is the most idiomatic way of disabling an effect after a condition is met?
Is it possible to disable an effect after some condition is met or should I just use an early return?
4 Replies
Use an early return
or if the signal should be used after mount, use
onMount(() => {})
early return is fine. there is https://docs.solidjs.com/reference/secondary-primitives/create-reaction too but i never used it myself
TIL thanks!
ur welcome!