Skip to content

Commit 3aaed14

Browse files
committed
Remove toString of dangerouslySetInnerHTML
As far as I can tell, the toString call was added here: caae627#diff-5574f655d491348f422bca600ff6711dR887 It was never really needed. Subsequently when we added Trusted Types, this needed to be changed to a special call but we really should just always let it pass through.
1 parent f749045 commit 3aaed14

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/react-dom/src/client/ReactDOMComponent.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ import possibleStandardNames from '../shared/possibleStandardNames';
8585
import {validateProperties as validateARIAProperties} from '../shared/ReactDOMInvalidARIAHook';
8686
import {validateProperties as validateInputProperties} from '../shared/ReactDOMNullInputValuePropHook';
8787
import {validateProperties as validateUnknownProperties} from '../shared/ReactDOMUnknownPropertyHook';
88-
import {toStringOrTrustedType} from './ToStringValue';
8988

9089
import {
9190
enableDeprecatedFlareAPI,
@@ -789,7 +788,7 @@ export function diffProperties(
789788
if (lastHtml !== nextHtml) {
790789
(updatePayload = updatePayload || []).push(
791790
propKey,
792-
toStringOrTrustedType(nextHtml),
791+
nextHtml,
793792
);
794793
}
795794
} else {

0 commit comments

Comments
 (0)