setimeout not triggering change detection in my angular code
Summary A developer implemented a toast notification service where toasts should automatically disappear after a set duration. The initial implementation used a plain array and setTimeout to remove items. However, while the array was correctly mutated after the timeout, the UI did not update to remove the toast. The root cause was mutating a plain … Read more