HTML page refreshing too fast for database to update

Hi,

https://youtu.be/T6lf39TYjAY?t=2197

I am following this tutorial as a baseline to learn HTML to start a new project. I'm at the linked timestamp, where data is being added to a table, but every time I click a button the page refreshes but the changed content does not update as opposed to the video (until after a manual refresh). Is there any way to make sure that the content updates before the page loads?

Node-Red v2.2.2
Node.js v18.4.0

Thanks!

In your flow, just update the DB first, and when you get the reply from the DB saying that it has entered the data (and only then), you update the UI.

Out of curiosity, how fast are you getting new data? What's the update frequency?

Turns out I was being an idiot and not running the http in back to the http response to refresh the page with the new data. Thanks for the help!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.