I'm learning shader graphs but my animations stop if I'm not in play mode. Doing anything in the editor/game window causes the animation to play again. Even moving the mouse over the window is enough. But when I stop the animation stops.
(But I guess these are unrelated to the problem)
P.S.: This doesn't happen in play mode.
If you didn't enable Always Refresh, try to enable it: