You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure how or even if Yeti dealt with this, but every node I've written with RSC in mind needs a parameter for the state and drive mode string (unless I want to use magic strings (which I don't)).
What we can do instead is make a custom message, with the states declared as constants there. So instead of
if (state_msg.data == "ready") {
// do stuff
}
it becomes something like
if (state_msg.state == state_msg.STATE_READY) {
// do stuff
}
I'm not sure how or even if Yeti dealt with this, but every node I've written with RSC in mind needs a parameter for the state and drive mode string (unless I want to use magic strings (which I don't)).
What we can do instead is make a custom message, with the states declared as constants there. So instead of
it becomes something like
The message types might look something like this
I honestly don't remember if we talked about this and discarded it before, but it's been bothering me while going through Ohm's code.
The text was updated successfully, but these errors were encountered: