News for hackers. Stuff that matters.
Re:The future of web software is HTML over WebSockets by aembleton on Friday February 26, 2021 @07:02AM (#26273934)
> So what do you do with the stale list of patients in the browser DOM?

Write the front end in something like Vue. When you catch an error from an axios call, update your data model by calling the server for updates.

When the data model updates, Vue will automagically update the DOM used by the browser.

Re:The future of web software is HTML over WebSockets by rsj_hn on Friday February 26, 2021 @02:58PM (#26279147)
Right, but you can see how in some use cases it's important for the data to be relatively fresh, then you have to choose between polling and server push.