marko 5.33.6 → 5.33.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -55,14 +55,17 @@ exports.p = function (tagsAPI) {
|
|
55
55
|
const input = _.i;
|
56
56
|
const tagsRenderer = _.r;
|
57
57
|
const renderFn = createRenderFn(tagsRenderer);
|
58
|
+
const willRerender = componentDef._wrr;
|
58
59
|
const $global = out.global;
|
59
60
|
const streamData = $global.streamData = $global.streamData || {};
|
60
61
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
62
|
+
if (willRerender) {
|
63
|
+
$global.serializedGlobals = $global.serializedGlobals || {};
|
64
|
+
$global.serializedGlobals.componentIdToScopeId = true;
|
65
|
+
$global.componentIdToScopeId = $global.componentIdToScopeId || {};
|
66
|
+
$global.componentIdToScopeId[component.id] = streamData.scopeId || 0;
|
67
|
+
}
|
68
|
+
out.bf(out._Y_, component, willRerender);
|
66
69
|
renderFn(out.beginAsync(), input, {}, streamData);
|
67
70
|
out.ef();
|
68
71
|
},
|
@@ -72,8 +75,10 @@ exports.p = function (tagsAPI) {
|
|
72
75
|
|
73
76
|
|
74
77
|
|
78
|
+
|
75
79
|
{
|
76
|
-
t: TagsCompatId
|
80
|
+
t: TagsCompatId,
|
81
|
+
i: true
|
77
82
|
},
|
78
83
|
{}
|
79
84
|
);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "marko",
|
3
|
-
"version": "5.33.
|
3
|
+
"version": "5.33.8",
|
4
4
|
"description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
|
5
5
|
"keywords": [
|
6
6
|
"front-end",
|
@@ -64,8 +64,8 @@
|
|
64
64
|
"build": "babel ./src --out-dir ./dist --extensions .js --copy-files --config-file ../../babel.config.js --env-name=production"
|
65
65
|
},
|
66
66
|
"dependencies": {
|
67
|
-
"@marko/compiler": "^5.35.
|
68
|
-
"@marko/translator-default": "^5.32.
|
67
|
+
"@marko/compiler": "^5.35.7",
|
68
|
+
"@marko/translator-default": "^5.32.8",
|
69
69
|
"app-module-path": "^2.2.0",
|
70
70
|
"argly": "^1.2.0",
|
71
71
|
"browser-refresh-client": "1.1.4",
|
@@ -55,14 +55,17 @@ exports.p = function (tagsAPI) {
|
|
55
55
|
const input = _.i;
|
56
56
|
const tagsRenderer = _.r;
|
57
57
|
const renderFn = createRenderFn(tagsRenderer);
|
58
|
+
const willRerender = componentDef._wrr;
|
58
59
|
const $global = out.global;
|
59
60
|
const streamData = ($global.streamData = $global.streamData || {});
|
60
61
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
62
|
+
if (willRerender) {
|
63
|
+
$global.serializedGlobals = $global.serializedGlobals || {};
|
64
|
+
$global.serializedGlobals.componentIdToScopeId = true;
|
65
|
+
$global.componentIdToScopeId = $global.componentIdToScopeId || {};
|
66
|
+
$global.componentIdToScopeId[component.id] = streamData.scopeId || 0;
|
67
|
+
}
|
68
|
+
out.bf(out.___assignedKey, component, willRerender);
|
66
69
|
renderFn(out.beginAsync(), input, {}, streamData);
|
67
70
|
out.ef();
|
68
71
|
},
|
@@ -70,10 +73,12 @@ exports.p = function (tagsAPI) {
|
|
70
73
|
"MARKO_DEBUG"
|
71
74
|
? {
|
72
75
|
t: TagsCompatId,
|
76
|
+
i: true,
|
73
77
|
d: true,
|
74
78
|
}
|
75
79
|
: {
|
76
80
|
t: TagsCompatId,
|
81
|
+
i: true,
|
77
82
|
},
|
78
83
|
{},
|
79
84
|
);
|