Skip to content

Commit

Permalink
Make React.Element fully opaque
Browse files Browse the repository at this point in the history
Reviewed By: mvitousek

Differential Revision: D50198503

fbshipit-source-id: 47537aeefbc6cbdee8954ea1052ff3a4b4392744
  • Loading branch information
SamChou19815 authored and facebook-github-bot committed Oct 12, 2023
1 parent 95e4f9d commit 1d95ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-relay/__mocks__/RelayTestRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class RelayTestRenderer extends React.Component<Props, $FlowFixMe> {
};

render(): React.Element<typeof ReactRelayContext.Provider> {
// $FlowFixMe(site=www)[prop-missing]
// $FlowFixMe[prop-missing] Suppressed after making React.Element fully opaque
const childProps = this.props.children.props;
const newProps = {...childProps, ...this.state.data};
return (
Expand Down

0 comments on commit 1d95ce2

Please sign in to comment.