From fe26a5eeb2da838cd248b599b2b9f1e9c6bd34cf Mon Sep 17 00:00:00 2001 From: Ken Sheedlo Date: Fri, 15 Sep 2023 20:47:06 -0700 Subject: [PATCH] Fix flow suppression in buildReactRelayContainer Reviewed By: cyan33 Differential Revision: D49192986 fbshipit-source-id: 2f2c9ca6c8f40048640f1325797f2d580c1cda11 --- packages/react-relay/buildReactRelayContainer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-relay/buildReactRelayContainer.js b/packages/react-relay/buildReactRelayContainer.js index b8af448591353..6470f90b2cb16 100644 --- a/packages/react-relay/buildReactRelayContainer.js +++ b/packages/react-relay/buildReactRelayContainer.js @@ -54,7 +54,9 @@ function buildReactRelayContainer>( function forwardRef( props: any, - ref: ((null | any) => mixed) | {current: null | any, ...}, + ref: + | ((null | React$ElementRef) => mixed) + | {-current: null | React$ElementRef, ...}, ) { const context = useContext(ReactRelayContext); invariant( @@ -78,8 +80,6 @@ function buildReactRelayContainer>( ); } forwardRef.displayName = containerName; - /* $FlowFixMe[incompatible-call] (site=www) Error found while fixing forwardRef and - * TRefFor types */ const ForwardContainer = React.forwardRef(forwardRef); if (__DEV__) {