Continuing the discussion from ISO: Moon Shots:
I got the initial state rendering kinda working ish.
But I can’t find anything on progressive enhancement in vNext: https://github.com/aurelia/aurelia/search?q=enhance
Am I looking in the wrong place?
Continuing the discussion from ISO: Moon Shots:
I got the initial state rendering kinda working ish.
But I can’t find anything on progressive enhancement in vNext: https://github.com/aurelia/aurelia/search?q=enhance
Am I looking in the wrong place?
No you did not, if you meant to ask about V2. It’s a high level API that we can add when all the primitives are in place. I’ll ping @fkleuver and @EisenbergEffect for this
Yes. I am consciously talking about Aurelia 2 (that’s the final name isn’t it?)
Yes it is 
Is there a way to follow the progress of SSR in vNext development more closely than the discourse? Once there is an early version of it ready, I would like to test it 
I’m halting my efforts due to:
The more I look at this, the more “enhancing” seems like a misleading word.
What we are looking for here is not just “enhance” (basically attach listeners) but rather “hydrate”, which includes updating the DOM if data / dependencies have changed.
Svelte does it in a rather peculiar way:
The way I say it’s “peculiar” is because Svelte is a compiler, it gets to do things like:
// while building the component
make-an-idempotent-change(this.props)
this.chunks.hydrate.push("make-an-idempotent-change(this.props)")
make-another-change(this.props)
this.chunks.hydrate.push("clean-up-as-needed() && make-another-change(this.props)")
this.hydrate = "function hydrate() {" + this.chunks.hydrate.join("\n") + "}";
// later when asked to hydrate
eval(this.hydrate)
Of course the explanation above is an oversimplified naive stripped-down version of what Svelte does, but you get the idea.
React and Vue hydration are more “common” and they work almost like Aurelia v1 .enhance() although they also “repair” the DOM as needed.
That’s what we need here.
I’m pretty exited about Aurelia 2 and love the documentation at docs.aurelia.io. Unfortunately, it lacks any info about server-side rendering. After searching high and low I found this thread and it does not render me too confident. If I understand this correctly, SSR does not exist yet and probably will not for a long time if ever at all (judging by the general visible progress of Aurelia 2). Is this a fair assessment?