We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57ef866 commit 089e819Copy full SHA for 089e819
nodes/Reducer/Reducer.js
@@ -56,6 +56,11 @@ module.exports = function(RED) {
56
"const newState = reduce(substate, action);"+
57
"msg.substateName = \"" + this.substateName + "\";"+
58
"msg.substate = newState;"+
59
+
60
+ "global.state = Object.assign({},"+
61
+ "global.state,"+
62
+ "{" + this.substateName + ": newState}"+
63
+ ");"+
64
"return msg;";
65
66
var functionText = "var results = null;"+
0 commit comments