Sometimes it is useful to separate tracking from re-execution. This primitive registers a side effect that is run the first time the expression wrapped by the returned tracking function is notified of a change.
1 2 3 4 5 6 7 8 910
const[s,set]=createSignal("start");consttrack=createReaction(()=>console.log("something"));// next time s changes run the reactiontrack(()=>s());set("end");// "something"set("final");// no-op as reaction only runs on first update, need to call track again.