Ilir Beqiri
Mar 25, 2024

--

man, .update() on each run sets a new value to the signal, then notifies the consumers (template) in this case, template reads signal value and after refresh makes afterRender run again and the cycle continues (hence indefinite), but .set() if the value you set is the same as previous one, it wont notify the consumers thus its definite

--

--

Ilir Beqiri
Ilir Beqiri

Written by Ilir Beqiri

👨‍💻Front End Engineer 😵‍💫Passionate About JS, TS, Angular 🅰️ ✍️ Sharing Knowledge with Community

No responses yet