Comments (4)
All that is available to the template after a refresh is the contents of the latest message sent to or from the template
On this ↑ point
I mentioned in a comment of the forum (think it got lost in the noise) but one of the MAJOR hurdles we (@bartbutenaers and I) had when developing the context menu node was actually differentiating a regular message from a replay message.
whatever the outcome of this issue, i would like to see something in the msg
that clearly indicates it is a replay message. Something like msg.ui_replay === true
. This way the contrib node developer (or even the ui-template user) has a full awareness and has the ability to to use or discard the replay message.
This might however be unnecessary if all nodes get an option to disable replay.
from node-red-dashboard.
As far as I can see the message replay feature is not mentioned in the ui-template docs.
from node-red-dashboard.
Yes indeed the msg replay mechanism was nothing more than trouble.
At first sight it seemed to be a brilliant idea: just replay the last message. But in fact it makes completely no sense at all. The state of a ui widget is build by injecting N successive messages. So only replaying the last message of those N messages does tell you really zero.
Thorsten had solved a lot of those troubles in Flexdash. Every ui node had a server side state, which you can manipulate using input messages. The delta was being send to all the existing clients, and the complete state was being send to new clients (or after a refresh). That is it. Very straightforward...
That is the reason I had registered this issue when the developments of this new dashboard had started. I had really hoped Thorsten's design would have been a bit adopted here. Because changing such stuff afterwards is very hard...
from node-red-dashboard.
I think the server side store available to contributed ui nodes works ok, if that were available to templates then I don't think there would be a big issue.
from node-red-dashboard.
Related Issues (20)
- Fixed color for topics
- Combination of scatter and line diagram
- Define color of scatter datapoints based on thresholds
- Dynamic properties for button groups HOT 3
- After updating to new version 1.10.0 the dashboard page no longer opens. HOT 1
- 'widget-load' event sent multiple times to widget HOT 13
- Format of timescale axis in chart node HOT 5
- Event handlers (in custom ui nodes) not receiving widget notifications after socket reconnect HOT 2
- Sidebar - Clearer state representation
- Notification node does not send output messages anymore HOT 4
- Include Socket IP in _client data
- ui-form submit button has to be clicked twice HOT 1
- PWA-Chrome issue HOT 54
- A node red restart is necessary after installing third party ui nodes HOT 1
- Bar chart append mode series ordered randomly HOT 6
- PWA not reloading a third party UI node after the node is updated. HOT 1
- Improvements needed to handling of socket connection lost HOT 20
- Dashboard 1.11.1 msg._client issues (!) HOT 20
- Dashboard notification dismissed early HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-dashboard.