Git Product home page Git Product logo

Comments (4)

Steve-Mcl avatar Steve-Mcl commented on September 27, 2024

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.

colinl avatar colinl commented on September 27, 2024

As far as I can see the message replay feature is not mentioned in the ui-template docs.

from node-red-dashboard.

bartbutenaers avatar bartbutenaers commented on September 27, 2024

@Steve-Mcl,

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.

colinl avatar colinl commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.