Skip to content

Commit

Permalink
fix hydration
Browse files Browse the repository at this point in the history
  • Loading branch information
ts-thomas committed Jan 5, 2024
1 parent 71f99b0 commit e593bdb
Show file tree
Hide file tree
Showing 27 changed files with 182 additions and 200 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<a target="_blank" href="https://www.npmjs.com/package/mikado"><img src="https://img.shields.io/npm/v/mikado.svg"></a>
<img src="https://img.shields.io/badge/build-passing-brightgreen">
<img src="https://img.shields.io/badge/coverage-81%25-yellow">
<img src="https://img.shields.io/badge/coverage-85%25-yellow">
<a target="_blank" href="https://github.com/nextapps-de/mikado/issues"><img src="https://img.shields.io/github/issues/nextapps-de/mikado.svg"></a>
<a target="_blank" href="https://github.com/nextapps-de/mikado/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/mikado.svg"></a>

Expand Down
8 changes: 5 additions & 3 deletions dist/mikado.bundle.debug.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**!
* Mikado.js v0.8.201 (Bundle/Debug)
* Mikado.js v0.8.204 (Bundle/Debug)
* Copyright 2019-2024 Nextapps GmbH
* Author: Thomas Wilkerling
* Licence: Apache-2.0
Expand Down Expand Up @@ -305,6 +305,7 @@ function E(a, b = {}) {
this.root = b.root || b.mount || null;
this.recycle = !!b.recycle;
this.state = b.state || {};
this.shadow = b.shadow || null;
this.key = a.key || "";
this.o = {};
c = a.fn;
Expand All @@ -328,6 +329,7 @@ function E(a, b = {}) {
l = E.prototype;
l.mount = function(a, b) {
this.s && this.cancel();
"boolean" === typeof this.shadow && this.shadow && (this.shadow = a = a.attachShadow({mode:"open"}));
const c = a._mki;
var d = this.root !== a;
if (c === this) {
Expand Down Expand Up @@ -367,11 +369,11 @@ l.mount = function(a, b) {
}
a._mki = this;
this.root = a;
this.j || (b && this.length && (this.j = this.g[0].cloneNode(), K(this, this.tpl.tpl, [], "", this.j) && O(this)), this.tpl && (this.j = K(this, this.tpl.tpl, [], ""), O(this)));
this.j || (b && this.length && (this.j = this.g[0].cloneNode(!0), K(this, this.tpl.tpl, [], "", this.j) && O(this)), this.tpl && (this.j = K(this, this.tpl.tpl, [], ""), O(this)));
return this;
};
function O(a) {
a.tpl.A && (a.tpl.fn.length && console.error("The template '" + a.name + "' might not have been initialized properly. There are " + a.tpl.fn.length + " template functions left which wasn't assigned. Please post an example to Mikado Github issues."), a.tpl.fn = a.tpl.A, a.tpl.A = null);
a.tpl.A && (a.tpl.fn = a.tpl.A, a.tpl.A = null);
a.tpl = null;
}
l.render = function(a, b, c, d) {
Expand Down
10 changes: 5 additions & 5 deletions dist/mikado.bundle.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions dist/mikado.bundle.module.debug.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**!
* Mikado.js v0.8.201 (Bundle/Module/Debug)
* Mikado.js v0.8.204 (Bundle/Module/Debug)
* Copyright 2019-2024 Nextapps GmbH
* Author: Thomas Wilkerling
* Licence: Apache-2.0
Expand Down Expand Up @@ -304,6 +304,7 @@ function E(a, b = {}) {
this.root = b.root || b.mount || null;
this.recycle = !!b.recycle;
this.state = b.state || {};
this.shadow = b.shadow || null;
this.key = a.key || "";
this.o = {};
c = a.fn;
Expand All @@ -327,6 +328,7 @@ function E(a, b = {}) {
l = E.prototype;
l.mount = function(a, b) {
this.s && this.cancel();
"boolean" === typeof this.shadow && this.shadow && (this.shadow = a = a.attachShadow({mode:"open"}));
const c = a._mki;
var d = this.root !== a;
if (c === this) {
Expand Down Expand Up @@ -366,11 +368,11 @@ l.mount = function(a, b) {
}
a._mki = this;
this.root = a;
this.j || (b && this.length && (this.j = this.g[0].cloneNode(), K(this, this.tpl.tpl, [], "", this.j) && O(this)), this.tpl && (this.j = K(this, this.tpl.tpl, [], ""), O(this)));
this.j || (b && this.length && (this.j = this.g[0].cloneNode(!0), K(this, this.tpl.tpl, [], "", this.j) && O(this)), this.tpl && (this.j = K(this, this.tpl.tpl, [], ""), O(this)));
return this;
};
function O(a) {
a.tpl.A && (a.tpl.fn.length && console.error("The template '" + a.name + "' might not have been initialized properly. There are " + a.tpl.fn.length + " template functions left which wasn't assigned. Please post an example to Mikado Github issues."), a.tpl.fn = a.tpl.A, a.tpl.A = null);
a.tpl.A && (a.tpl.fn = a.tpl.A, a.tpl.A = null);
a.tpl = null;
}
l.render = function(a, b, c, d) {
Expand Down
10 changes: 5 additions & 5 deletions dist/mikado.bundle.module.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions dist/mikado.es5.debug.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**!
* Mikado.js v0.8.201 (ES5/Debug)
* Mikado.js v0.8.204 (ES5/Debug)
* Copyright 2019-2024 Nextapps GmbH
* Author: Thomas Wilkerling
* Licence: Apache-2.0
Expand Down Expand Up @@ -834,6 +834,7 @@ function I(a, b) {
this.root = b.root || b.mount || null;
this.recycle = !!b.recycle;
this.state = b.state || {};
this.shadow = b.shadow || null;
this.key = a.key || "";
this.A = {};
c = a.fn;
Expand All @@ -857,6 +858,7 @@ function I(a, b) {
n = I.prototype;
n.mount = function(a, b) {
this.B && this.cancel();
"boolean" === typeof this.shadow && this.shadow && (this.shadow = a = a.attachShadow({mode:"open"}));
var c = a._mki, d = this.root !== a;
if (c === this) {
if (!d) {
Expand Down Expand Up @@ -893,11 +895,11 @@ n.mount = function(a, b) {
}
a._mki = this;
this.root = a;
this.l || (b && this.length && (this.l = this.g[0].cloneNode(), O(this, this.tpl.tpl, [], "", this.l) && ra(this)), this.tpl && (this.l = O(this, this.tpl.tpl, [], ""), ra(this)));
this.l || (b && this.length && (this.l = this.g[0].cloneNode(!0), O(this, this.tpl.tpl, [], "", this.l) && ra(this)), this.tpl && (this.l = O(this, this.tpl.tpl, [], ""), ra(this)));
return this;
};
function ra(a) {
a.tpl.H && (a.tpl.fn.length && console.error("The template '" + a.name + "' might not have been initialized properly. There are " + a.tpl.fn.length + " template functions left which wasn't assigned. Please post an example to Mikado Github issues."), a.tpl.fn = a.tpl.H, a.tpl.H = null);
a.tpl.H && (a.tpl.fn = a.tpl.H, a.tpl.H = null);
a.tpl = null;
}
n.render = function(a, b, c, d) {
Expand Down
10 changes: 5 additions & 5 deletions dist/mikado.es5.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e593bdb

Please sign in to comment.