3 ms·
> 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
by aembleton 6y ago
> 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.
- rsj_hn 6y agoRight, 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.