Skip to content

Commit 92c8d68

Browse files
tyao1facebook-github-bot
authored andcommittedSep 17, 2020
Fix @match with __typename: other in MatchContainer
Reviewed By: kassens Differential Revision: D23747302 fbshipit-source-id: a91727b30be1b1a65fdbc9743a6a25a58d96f1e5
1 parent 7818bfb commit 92c8d68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎packages/relay-experimental/MatchContainer.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ const {useMemo} = React;
8686

8787
// Note: this type is intentionally non-exact, it is expected that the
8888
// object may contain sibling fields.
89+
type TypenameOnlyPointer = {|+__typename: string|};
8990
export type MatchPointer = {
9091
+__fragmentPropName?: ?string,
9192
+__module_component?: mixed,
@@ -96,7 +97,7 @@ export type MatchPointer = {
9697
export type MatchContainerProps<TProps: {...}, TFallback: React.Node> = {|
9798
+fallback?: ?TFallback,
9899
+loader: (module: mixed) => React.AbstractComponent<TProps>,
99-
+match: ?MatchPointer,
100+
+match: ?MatchPointer | ?TypenameOnlyPointer,
100101
+props?: TProps,
101102
|};
102103

0 commit comments

Comments
 (0)