Bad form probably, but is this true about context variables

Probably it is safer to add the final flow.set anyway. As you probably know there are mutating x non-mutating methods array methods. You may get confused if using non-mutating methods, like below:

flow.set("storedarray",["1","2"]);
//other code
temp = flow.get("storedarray");

node.warn(temp.concat("3"));
node.warn(temp.slice(1));

msg.payload = temp;
return msg;

There is a similar discussion here:

1 Like