I am trying to understand what causes global variables to be reset. I feel like most times I hit deploy it does not reset them, but sometimes when I deploy all get set to undefined.
The background to this questions is I had some kind of power surge last night and the monitor connected to my Pi turned off, among other things. All of my global variables had been reset to undefined, but node red did not deploy and was still running fine.