From 91a6e3af3a5a6d6fff4a8d32127030c95225e01b Mon Sep 17 00:00:00 2001 From: Shu Ding Date: Tue, 9 Nov 2021 01:45:44 +0100 Subject: [PATCH] Do not hide body when concurrentFeatures is enabled (#31187) When Fizz is enabled, we want to always show the content of body even before it's loaded. Please hide whitespace changes when reviewing this PR. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint` --- packages/next/pages/_document.tsx | 35 ++++++++++++++++--------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/packages/next/pages/_document.tsx b/packages/next/pages/_document.tsx index a69b919b16709b4..b11d730f61f7379 100644 --- a/packages/next/pages/_document.tsx +++ b/packages/next/pages/_document.tsx @@ -650,27 +650,28 @@ export class Head extends Component< return ( - {this.context.isDevelopment && ( - <> -