Comments heh. Who would have thought ! ( but what does the code actually do ?...)
By just reading the code seems to me that
replayMessages
object used for msg
storage and filled on every input if there is something to emit. Socket has listener for ui-replay-state
which seems to happen on new connection and then for every msg
in replayMessages
socket emits update-value
storeFrontEndInputAsState
doesn't affect this behavior in any way
@dceejay @hotNipi I can do a PR on node-red-dashboard to add this behavior:
In order to keep existing behavior (and not break existing widget behavior) I propose to define a new boolean in addWidget API persistantFrontEndValue
(default true).
When set to false, then update-value
is not sent on new connection.
When set to true, keep existing behavior.
What do you think about such PR ?
@dceejay
Hello any feedback on the PR proposal is welcome.
I don't want to spend time on such dev if there is no chance to be considered/merged.
Thanks