Skip to content

Commit

Permalink
Fix flow suppression in buildReactRelayContainer
Browse files Browse the repository at this point in the history
Reviewed By: cyan33

Differential Revision: D49192986

fbshipit-source-id: 2f2c9ca6c8f40048640f1325797f2d580c1cda11
  • Loading branch information
Ken Sheedlo authored and facebook-github-bot committed Sep 16, 2023
1 parent 8237ab4 commit fe26a5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-relay/buildReactRelayContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ function buildReactRelayContainer<TBase: React$ComponentType<any>>(

function forwardRef(
props: any,
ref: ((null | any) => mixed) | {current: null | any, ...},
ref:
| ((null | React$ElementRef<TBase>) => mixed)
| {-current: null | React$ElementRef<TBase>, ...},
) {
const context = useContext(ReactRelayContext);
invariant(
Expand All @@ -78,8 +80,6 @@ function buildReactRelayContainer<TBase: React$ComponentType<any>>(
);
}
forwardRef.displayName = containerName;
/* $FlowFixMe[incompatible-call] (site=www) Error found while fixing forwardRef and
* TRefFor types */
const ForwardContainer = React.forwardRef(forwardRef);

if (__DEV__) {
Expand Down

0 comments on commit fe26a5e

Please sign in to comment.