Skip to content

Commit 8703f8a

Browse files
committed
Outline if a boundary would add too many bytes to the next completion event
1 parent 8e9a5fc commit 8703f8a

File tree

4 files changed

+309
-247
lines changed

4 files changed

+309
-247
lines changed

fixtures/ssr/server/render.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ThrottledWritable extends Writable {
1919
constructor(destination) {
2020
super();
2121
this.destination = destination;
22-
this.delay = 150;
22+
this.delay = 10;
2323
}
2424

2525
_write(chunk, encoding, callback) {
@@ -49,10 +49,10 @@ export default function render(url, res) {
4949
// Log fatal errors
5050
console.error('Fatal', error);
5151
});
52-
console.log('hello');
5352
let didError = false;
5453
const {pipe, abort} = renderToPipeableStream(<App assets={assets} />, {
5554
bootstrapScripts: [assets['main.js']],
55+
progressiveChunkSize: 1024,
5656
onShellReady() {
5757
// If something errored before we started streaming, we set the error code appropriately.
5858
res.statusCode = didError ? 500 : 200;

fixtures/ssr/src/components/Chrome.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ export default class Chrome extends Component {
3939
{this.props.children}
4040
</Theme.Provider>
4141
</Suspense>
42-
<p>This should appear in the first paint.</p>
43-
<Suspense fallback="Loading...">
44-
<p>This content should not block paint.</p>
45-
<LargeContent />
46-
</Suspense>
42+
<LargeContent />
4743
<script
4844
dangerouslySetInnerHTML={{
4945
__html: `assetManifest = ${JSON.stringify(assets)};`,

0 commit comments

Comments
 (0)