-
Notifications
You must be signed in to change notification settings - Fork 27
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
✨ [Frontend] Listen to the stateInputPorts
and stateOutputPorts
websocket events
#6538
✨ [Frontend] Listen to the stateInputPorts
and stateOutputPorts
websocket events
#6538
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
once there starts to be an increasing number of updates spontaneously coming from the server, it really helps to keep all that data up to date in a single, detached place. like that it is easily accessible from any part of the app and not only from the component who listens to the socket event. like that you can listen to all socket events from one place, that takes care of updating this centralized store of data, or "state", and then you have your components listening (subscribing to changes) to parts of this store and updating themselves accordingly.
one library that helps doing this that seems widely used and working well is https://mobx.js.org/README.html
I was testing it long time ago with Qooxdoo and seemed to work well, if you are interested, we can take a look together
Quality Gate passedIssues Measures |
Merci! I would rather extend our Store or create a Port data model in the Node model than add an external library. |
What do these changes do?
The icons next to the node ports are now also handled by the backend. This only works with dynamic v2 services
Socket message
stateInputPorts
states:Socket message
stateOutputPorts
states:Related issue/s
How to test
Dev-ops checklist