Skip to content
Permalink
Browse files

fix: Force hydrate if no SSR rendered html found

  • Loading branch information
znck committed Jan 18, 2019
1 parent 0a4dfa9 commit ce733bbe871bf3b44b794ac2303bd8cbc827c340
Showing with 3 additions and 1 deletion.
  1. +3 −1 Hydrate.vue
@@ -42,13 +42,15 @@ export default {
}
},
mounted() {
if (this.ssrOnly) return;
if (this.$el.childElementCount === 0) {
// No SSR rendered content.
this.hydrated = true;
return;
}
if (this.ssrOnly) return;
if (this.whenIdle) {
const id = requestIdleCallback(
() => {

0 comments on commit ce733bb

Please sign in to comment.
You can’t perform that action at this time.