dom-expressions 0.34.3 → 0.34.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/server.js +3 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dom-expressions",
|
|
3
3
|
"description": "A Fine-Grained Runtime for Performant DOM Rendering",
|
|
4
|
-
"version": "0.34.
|
|
4
|
+
"version": "0.34.4",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"babel-plugin-jsx-dom-expressions": "^0.34.2",
|
|
27
27
|
"csstype": "^3.1.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "7eb932fcbfe10cf61765c670cde06b6e4dfcd1cf"
|
|
30
30
|
}
|
package/src/server.js
CHANGED
|
@@ -91,6 +91,7 @@ export function renderToStream(code, options = {}) {
|
|
|
91
91
|
suspense: {},
|
|
92
92
|
assets: [],
|
|
93
93
|
nonce,
|
|
94
|
+
block(p) { if (!firstFlushed) blockingResources.push(p); },
|
|
94
95
|
replace(id, payloadFn) {
|
|
95
96
|
if (firstFlushed) return;
|
|
96
97
|
const placeholder = `<!${id}>`;
|
|
@@ -143,7 +144,7 @@ export function renderToStream(code, options = {}) {
|
|
|
143
144
|
}
|
|
144
145
|
}
|
|
145
146
|
}
|
|
146
|
-
Promise.resolve().then(checkEnd);
|
|
147
|
+
if (!registry.size) Promise.resolve().then(checkEnd);
|
|
147
148
|
return firstFlushed;
|
|
148
149
|
};
|
|
149
150
|
}
|
|
@@ -184,7 +185,7 @@ export function renderToStream(code, options = {}) {
|
|
|
184
185
|
complete();
|
|
185
186
|
};
|
|
186
187
|
} else onCompleteAll = complete;
|
|
187
|
-
|
|
188
|
+
if (!registry.size) Promise.resolve().then(checkEnd);
|
|
188
189
|
},
|
|
189
190
|
pipe(w) {
|
|
190
191
|
Promise.allSettled(blockingResources).then(() => {
|