Skip to content

Commit 3c7b53f

Browse files
committed
Revert fixture changes
would be too disruptive
1 parent 63a6c61 commit 3c7b53f

File tree

3 files changed

+1
-23
lines changed

3 files changed

+1
-23
lines changed

fixtures/fizz/server/render-to-stream.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ module.exports = function render(url, res) {
4545
onError(x) {
4646
didError = true;
4747
console.error(x);
48-
// Redundant with `console.createTask`. Only added for debugging.
49-
console.error(
50-
'The above error occurred during server rendering: %s',
51-
React.captureOwnerStack()
52-
);
5348
},
5449
});
5550
// Abandon and switch to client rendering if enough time passes.

fixtures/fizz/src/App.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,10 @@
66
*
77
*/
88

9-
import {Suspense} from 'react';
109
import Html from './Html';
1110
import BigComponent from './BigComponent';
12-
import MaybeHaltedComponent from './MaybeHaltedComponent';
1311

14-
const serverHalt =
15-
typeof window === 'undefined'
16-
? new Promise(() => {})
17-
: Promise.resolve('client');
18-
19-
export default function App({assets, promise, title}) {
12+
export default function App({assets, title}) {
2013
const components = [];
2114

2215
for (let i = 0; i <= 250; i++) {
@@ -28,10 +21,6 @@ export default function App({assets, promise, title}) {
2821
<h1>{title}</h1>
2922
{components}
3023
<h1>all done</h1>
31-
<h2>or maybe not</h2>
32-
<Suspense fallback="loading more...">
33-
<MaybeHaltedComponent promise={serverHalt} />
34-
</Suspense>
3524
</Html>
3625
);
3726
}

fixtures/fizz/src/MaybeHaltedComponent.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)