Stephen Smyth

Results 7 comments of Stephen Smyth

3.0.0 The issue is recreated here https://stackblitz.com/edit/node-9tjqve?file=dist%2Findex.js

You could try something like this https://gist.github.com/kaheglar/10afd535e4970ad9ec6accd62b6ceb03.

Hi @azaslonov @iberodev. The trick is to make the asynchronous aspects of your application synchronous, when rendering on the server side. The two main cases are: 1. Async. data loading...

@azaslonov @miellaby You can use this pattern to render async. components synchronously https://gist.github.com/kaheglar/a587286db24af724f4e2b31ee4e57eff

@nerfpops Knockout destroys the server rendered HTML then recreates it (hopefully verbatim) with the applyBindings call. This sounds horrific, but in practice it works quite well. If all the bindings...

@chrisknoll You've, quite rightly, exposed a potential mantrap here, where a template that is inferred from the index.html can be corrupted/altered by the server rendering stage. I find the best...

No tutorial that I know of. Here's the naive solution https://runkit.com/kaheglar/58d4df9993b2030014579f47, however, things get much more complicated when you introduce async component and data loading...