Is there any way in an effect that I can determine which Angular signal caused an effect to execute? I have two signals and one effect in a component. For one signal, I want to start a timer function within a service. The other signal is based on the changing conditions in the service timer function and can change frequently.
I have a workaround solution but it would be useful to know which signal caused the effect. The work around is to set an isStarted boolean value in the service when the timer starts.
>Solution :
Effects are fired when their reactive node is marked as dirty.
At the time of writing there is no tracking of which signal makes another one dirty.
So there is no way to determine which signal triggers an effect.