Skip to content

Commit

Permalink
BUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioricali committed Sep 7, 2023
1 parent 031c4ba commit 0dcc32f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
17 changes: 11 additions & 6 deletions dist/doz.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Doz, version: 5.0.0 - September 7, 2023 10:51:11 */
/* Doz, version: 5.1.0 - September 7, 2023 14:39:03 */
function bind$1(obj, context) {
if (typeof obj !== 'object' || obj == null) {
throw new TypeError('expected an object!');
Expand Down Expand Up @@ -2737,10 +2737,15 @@ function update($parent, newNode, oldNode, index = 0, cmp, initial, cmpParent) {
// console.log($parent.childNodes, index)
if (!$oldElement) {
//provo a ricreare il nodo mancante...
$oldElement = create(oldNode, cmp, initial, $parent._dozAttach[COMPONENT_INSTANCE] || cmpParent);
$parent.appendChild($oldElement);
console.error('$oldElement not found. It was restored.');
// return;
if (cmp.app.hydration
&& !cmp.hydrationRestored) {
$oldElement = create(oldNode, cmp, initial, $parent._dozAttach[COMPONENT_INSTANCE] || cmpParent);
$parent.appendChild($oldElement);
console.error('$oldElement not found. It was restored.');
cmp.hydrationRestored = true;
} else {
return;
}
}
// console.log('$oldElement', $oldElement)
const canReuseElement = cmp.$$beforeNodeChange($parent, $oldElement, newNode, oldNode);
Expand Down Expand Up @@ -5825,7 +5830,7 @@ Object.defineProperties(Doz, {
enumerable: true
},
version: {
value: '5.0.0',
value: '5.1.0',
enumerable: true
},
tag: {
Expand Down
Loading

0 comments on commit 0dcc32f

Please sign in to comment.