DEV Community

Discussion on: Death by Closure (and how Qwik solves it)

Collapse
 
tomastrajan profile image
Tomas Trajan 🇨🇭

How would this works for APPs which should continue to be updated after they have been rendered, for the sake of an argument, an trading system, we render (SSR) initial state but then the app should refresh based on data incoming from web socket, could this use case be handled with qwik ?

Collapse
 
mhevery profile image
Miško Hevery

This should follow normal app practices. Once the app bootstraps on client, you can set up timer event, which would download code to update data stream and update the stock symbols.

The only thing different here is that we are delaying most of the code to later, but the mental model for building applications should stay the same on higher level.