Fix stylesheet typo in 29693 (#29732)
stylehsheet -> stylesheet
Josh Story committed
Jun 3, 2024 at 07:51 UTC
def67b9b329c8aa204e611cd510c5a64680aee58
3 files changed
+4
-4
packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js
+1
-1
@@ -2442,7 +2442,7 @@ export function getResource(
2442
+ ${describeLinkForResourceErrorDEV(pendingProps)}`;
2443
}
2444
throw new Error(
2445
- 'Expected <link> not to update to be updated to a stylehsheet with precedence.' +
2445
+ 'Expected <link> not to update to be updated to a stylesheet with precedence.' +
2446
' Check the `rel`, `href`, and `precedence` props of this component.' +
2447
' Alternatively, check whether two different <link> components render in the same slot or share the same key.' +
2448
diff,
packages/react-dom/src/__tests__/ReactDOMHostComponentTransitions-test.js
+2
-2
@@ -62,14 +62,14 @@ describe('ReactDOM HostSingleton', () => {
62
await waitForAll([]);
63
if (__DEV__) {
64
expect(errors).toEqual([
65
- `Expected <link> not to update to be updated to a stylehsheet with precedence. Check the \`rel\`, \`href\`, and \`precedence\` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key.
65
+ `Expected <link> not to update to be updated to a stylesheet with precedence. Check the \`rel\`, \`href\`, and \`precedence\` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key.
66
67
- <link rel=\"preload\" href=\"bar\" ... />
68
+ <link rel=\"stylesheet\" href=\"bar\" precedence=\"default\" />`,
69
]);
70
} else {
71
expect(errors).toEqual([
72
- 'Expected <link> not to update to be updated to a stylehsheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key.',
72
+ 'Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key.',
73
]);
74
}
75
});
scripts/error-codes/codes.json
+1
-1
@@ -513,6 +513,6 @@
513
"525": "A React Element from an older version of React was rendered. This is not supported. It can happen if:\n- Multiple copies of the \"react\" package is used.\n- A library pre-bundled an old copy of \"react\" or \"react/jsx-runtime\".\n- A compiler tries to \"inline\" JSX instead of using the runtime.",
514
"526": "Could not reference an opaque temporary reference. This is likely due to misconfiguring the temporaryReferences options on the server.",
515
"527": "Incompatible React versions: The \"react\" and \"react-dom\" packages must have the exact same version. Instead got:\n - react: %s\n - react-dom: %s\nLearn more: https://react.dev/warnings/version-mismatch",
516
- "528": "Expected <link> not to update to be updated to a stylehsheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key.%s",
516
+ "528": "Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key.%s",
517
"529": "Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key.%s"
518
}