GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Fizz] Two More Fixes (#21288) · react/react@9eddfbf

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages
    • react-dom/src/server
      • ReactDOMServerFormatConfig.js
    • react-server/src
      • ReactFizzServer.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/react-dom/src/server/ReactDOMServerFormatConfig.js‎

Copy file name to clipboardExpand all lines: packages/react-dom/src/server/ReactDOMServerFormatConfig.js
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,15 +729,16 @@ function pushStartOption(
729729
}
730730
}
731731
break;
732-
case 'value':
733-
value = propValue;
734-
break;
735732
case 'dangerouslySetInnerHTML':
736733
invariant(
737734
false,
738735
'`dangerouslySetInnerHTML` does not work on <option>.',
739736
);
740737
// eslint-disable-next-line-no-fallthrough
738+
case 'value':
739+
value = propValue;
740+
// We intentionally fallthrough to also set the attribute on the node.
741+
// eslint-disable-next-line-no-fallthrough
741742
default:
742743
pushAttribute(target, responseState, propKey, propValue);
743744
break;
Collapse file

‎packages/react-server/src/ReactFizzServer.js‎

Copy file name to clipboardExpand all lines: packages/react-server/src/ReactFizzServer.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,11 +563,11 @@ function renderClassComponent(
563563
Component: any,
564564
props: any,
565565
): void {
566-
const unmaskedContext = !disableLegacyContext
567-
? task.legacyContext
566+
const maskedContext = !disableLegacyContext
567+
? getMaskedContext(Component, task.legacyContext)
568568
: undefined;
569-
const instance = constructClassInstance(Component, props, unmaskedContext);
570-
mountClassInstance(instance, Component, props, unmaskedContext);
569+
const instance = constructClassInstance(Component, props, maskedContext);
570+
mountClassInstance(instance, Component, props, maskedContext);
571571
finishClassComponent(request, task, instance, Component, props);
572572
}
573573

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.