-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync does not work when using a function node #24
Comments
could you post an example? I just tried it out and i do not have the same problem. |
Hi, I have the exact same issue. I'm not sure what the best way to show the example is, but I have the following example flow that demonstrates the issue:
Clicking the two first inject nodes properly syncs the FSM. Clicking the final one (which triggers the function) causes the error:
It sounds like it might be happening here but it could also be anywhere else, of course. I'm using Node-RED v3.0.2 and node-red-contrib-finite-statemachine@2.1.3 (in Docker but I don't think that plays a role). Let me know if I can provide more details :) Thanks for this work, in any case! |
I also have this exact same issue. Inject works just fine, but always throws this error from a function. I'm running NodeRED 3.0.2 Cheers. |
When setting the state using sync it only works using the inject node. Using any other notes to pass the data gets an error
{"msg":"this._state.toJS is not a function"}
The text was updated successfully, but these errors were encountered: