Hello everyone, sorry for my English, I only speak Spanish.
I am new to Node-red, and I have come across this doubt.
I want to save a data in a context variable, to later recover it without modifying its saved value.
In a function block I store a value obtained from a process:
but if later in another block I retrieve this value and do:
the value stored in flow.variable.data (context) is also modified (it becomes 200)
I'm not understanding, shouldn't it be kept?
Is it possible that an object cannot be saved to a context variable or do I need to do it as JSON?
Sorry if it's a very stupid question.
Greetings to everybody and thanks.
Hello E1cid, thank you very much for your prompt response.
Now it's clear to me what's going on, I missed that detail...
If I apply the change node before the function block, does it get a "copy" of the context variable or am I wrong?