knockout / tko

🥊 Technical Knockout – The Monorepo for Knockout.js (4.0+)
http://www.tko.io
Other
274 stars 34 forks source link

Server side render SSR support #177

Open nmocruz opened 2 years ago

nmocruz commented 2 years ago

It may out of scope, but wondering if is possible to Knockout have some kind of SSR support like other libraries/frameworks. I saw a discussion on KO repository but it seems a very basic approach to get the html rendered, there's a missing bit of reconciliation of the rendered html on the server and the view model in the browser side. Not sure what happens if you call applybindings to already rendered view, but I suspect that it will not what we expected. I am not and expert but seems like other libraries are applying the binding on the rendered view and doing a verification if there html matches or not with expected from the bindings and data on the viewmodel.