#Tracking which signals marked effect as dirty?

6 messages · Page 1 of 1 (latest)

foggy anchor
#

#questions message

Is there some way to detect what signal change has triggered an effect? I am debugging issue which likely stems from 3d party library which gets invoked from an effect, but its basically impossible to debug, apart from observing that the issue-infinite loop, doesn't occur when i wrap the call in untracked. Is there some api to list out all the signals that the "effect" is watching over/that marked it as dirty?

south rune
#

Just in case a mod sees this and thinks this is an unnecessary duplicate - I explicitly asked to have a discussion/help question about this after it came up in #questions as I believe this would otherwise get lost in the sea of activity in #questions , and is not a trivial question to answer.

low portal
#

Never used it, but don't the Angular dev tools have a signals graph allowing to track that?

gloomy hare
#

There is no concept of what makes a signal dirty in the signal graph

#

But yeah the signal graph can show you the dependencies

#

Requires v20 though