react-relay 0.0.0-main-e8567546 → 0.0.0-main-0a487b60
Sign up to get free protection for your applications and to get access to all the features.
- package/ReactRelayContext.js +1 -1
- package/ReactRelayTypes.js.flow +9 -9
- package/__flowtests__/RelayModern-flowtest.js.flow +5 -5
- package/__flowtests__/RelayModernFlowtest_badref.graphql.js.flow +4 -4
- package/__flowtests__/RelayModernFlowtest_notref.graphql.js.flow +4 -4
- package/__flowtests__/RelayModernFlowtest_user.graphql.js.flow +3 -3
- package/__flowtests__/RelayModernFlowtest_users.graphql.js.flow +3 -3
- package/__flowtests__/__generated__/ReactRelayFragmentContainerFlowtest_viewer.graphql.js.flow +15 -10
- package/__flowtests__/__generated__/ReactRelayFragmentContainerFlowtest_viewer2.graphql.js.flow +15 -10
- package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtestQuery.graphql.js.flow +14 -8
- package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtest_viewer.graphql.js.flow +15 -10
- package/__flowtests__/__generated__/ReactRelayRefetchContainerFlowtestQuery.graphql.js.flow +14 -8
- package/__flowtests__/__generated__/ReactRelayRefetchContainerFlowtest_viewer.graphql.js.flow +15 -10
- package/__flowtests__/__generated__/RelayModernFlowtest_badref.graphql.js.flow +18 -12
- package/__flowtests__/__generated__/RelayModernFlowtest_notref.graphql.js.flow +18 -12
- package/__flowtests__/__generated__/RelayModernFlowtest_user.graphql.js.flow +15 -10
- package/__flowtests__/__generated__/RelayModernFlowtest_users.graphql.js.flow +15 -10
- package/hooks.js +1 -1
- package/index.js +1 -1
- package/legacy.js +1 -1
- package/lib/relay-hooks/MatchContainer.js +1 -1
- package/package.json +2 -2
- package/react-relay-hooks.js +1 -1
- package/react-relay-hooks.min.js +1 -1
- package/react-relay-legacy.js +1 -1
- package/react-relay-legacy.min.js +1 -1
- package/react-relay.js +1 -1
- package/react-relay.min.js +1 -1
- package/relay-hooks/MatchContainer.js.flow +2 -2
- package/relay-hooks/__flowtests__/utils.js.flow +8 -12
- package/relay-hooks/useBlockingPaginationFragment.js.flow +2 -2
- package/relay-hooks/useFragment.js.flow +5 -5
- package/relay-hooks/useIsParentQueryActive.js.flow +2 -2
- package/relay-hooks/usePaginationFragment.js.flow +2 -2
- package/relay-hooks/useRefetchableFragment.js.flow +2 -2
package/ReactRelayContext.js
CHANGED
package/ReactRelayTypes.js.flow
CHANGED
@@ -94,7 +94,7 @@ export type RefetchOptions = {|
|
|
94
94
|
*
|
95
95
|
*/
|
96
96
|
export type $FragmentRef<T> = {
|
97
|
-
+$
|
97
|
+
+$fragmentSpreads: T['$fragmentType'],
|
98
98
|
...
|
99
99
|
};
|
100
100
|
|
@@ -105,14 +105,14 @@ export type $FragmentRef<T> = {
|
|
105
105
|
// prettier-ignore
|
106
106
|
export type $RelayProps<Props, RelayPropT = RelayProp> = $ObjMap<
|
107
107
|
$Diff<Props, { relay: RelayPropT | void, ... }>,
|
108
|
-
& (<T: { +$
|
109
|
-
& (<T: { +$
|
110
|
-
& (<TFragmentType: FragmentType, T: { +$
|
111
|
-
& (<TFragmentType: FragmentType, T: { +$
|
112
|
-
& (<TFragmentType: FragmentType, T: { +$
|
113
|
-
& (<TFragmentType: FragmentType, T: { +$
|
114
|
-
& (<TFragmentType: FragmentType, T: { +$
|
115
|
-
& (<TFragmentType: FragmentType, T: { +$
|
108
|
+
& (<T: { +$fragmentType: empty, ... }>( T) => T)
|
109
|
+
& (<T: { +$fragmentType: empty, ... }>(?T) => ?T)
|
110
|
+
& (<TFragmentType: FragmentType, T: { +$fragmentType: TFragmentType, ... }>( T ) => $FragmentRef<T> )
|
111
|
+
& (<TFragmentType: FragmentType, T: { +$fragmentType: TFragmentType, ... }>(? T ) => ? $FragmentRef<T> )
|
112
|
+
& (<TFragmentType: FragmentType, T: { +$fragmentType: TFragmentType, ... }>( $ReadOnlyArray< T>) => $ReadOnlyArray< $FragmentRef<T>>)
|
113
|
+
& (<TFragmentType: FragmentType, T: { +$fragmentType: TFragmentType, ... }>(?$ReadOnlyArray< T>) => ?$ReadOnlyArray< $FragmentRef<T>>)
|
114
|
+
& (<TFragmentType: FragmentType, T: { +$fragmentType: TFragmentType, ... }>( $ReadOnlyArray<?T>) => $ReadOnlyArray<?$FragmentRef<T>>)
|
115
|
+
& (<TFragmentType: FragmentType, T: { +$fragmentType: TFragmentType, ... }>(?$ReadOnlyArray<?T>) => ?$ReadOnlyArray<?$FragmentRef<T>>)
|
116
116
|
& (<T>(T) => T),
|
117
117
|
>;
|
118
118
|
|
@@ -128,22 +128,22 @@ const PluralTestFragment = createFragmentContainer(PluralTest, {
|
|
128
128
|
});
|
129
129
|
|
130
130
|
declare var aUserRef: {
|
131
|
-
+$
|
131
|
+
+$fragmentSpreads: RelayModernFlowtest_user$ref,
|
132
132
|
...
|
133
133
|
};
|
134
134
|
|
135
135
|
declare var oneOfUsersRef: {
|
136
|
-
+$
|
136
|
+
+$fragmentSpreads: RelayModernFlowtest_users$ref,
|
137
137
|
...
|
138
138
|
};
|
139
139
|
|
140
140
|
declare var usersRef: $ReadOnlyArray<{
|
141
|
-
+$
|
141
|
+
+$fragmentSpreads: RelayModernFlowtest_users$ref,
|
142
142
|
...
|
143
143
|
}>;
|
144
144
|
|
145
145
|
declare var nonUserRef: {
|
146
|
-
+$
|
146
|
+
+$fragmentSpreads: {thing: true, ...},
|
147
147
|
...
|
148
148
|
};
|
149
149
|
|
@@ -210,7 +210,7 @@ function cb(): void {}
|
|
210
210
|
/>;
|
211
211
|
|
212
212
|
declare var aComplexUserRef: {
|
213
|
-
+$
|
213
|
+
+$fragmentSpreads: {thing1: true, ...} & RelayModernFlowtest_user$ref & {
|
214
214
|
thing2: true,
|
215
215
|
...
|
216
216
|
},
|
@@ -13,11 +13,11 @@
|
|
13
13
|
'use strict';
|
14
14
|
|
15
15
|
import type {RelayModernFlowtest_user$ref} from './RelayModernFlowtest_user.graphql';
|
16
|
-
import type {
|
16
|
+
import type {FragmentType} from 'relay-runtime';
|
17
17
|
|
18
|
-
declare export opaque type RelayModernFlowtest_badref$ref:
|
18
|
+
declare export opaque type RelayModernFlowtest_badref$ref: FragmentType;
|
19
19
|
export type RelayModernFlowtest_badref = {|
|
20
20
|
+id: string,
|
21
|
-
+$
|
22
|
-
+$
|
21
|
+
+$fragmentSpreads: RelayModernFlowtest_user$ref,
|
22
|
+
+$fragmentType: RelayModernFlowtest_badref$ref,
|
23
23
|
|};
|
@@ -13,11 +13,11 @@
|
|
13
13
|
'use strict';
|
14
14
|
|
15
15
|
import type {RelayModernFlowtest_user$ref} from './RelayModernFlowtest_user.graphql';
|
16
|
-
import type {
|
16
|
+
import type {FragmentType} from 'relay-runtime';
|
17
17
|
|
18
|
-
declare export opaque type RelayModernFlowtest_notref$ref:
|
18
|
+
declare export opaque type RelayModernFlowtest_notref$ref: FragmentType;
|
19
19
|
export type RelayModernFlowtest_notref = {|
|
20
20
|
+id: string,
|
21
|
-
+$
|
22
|
-
+$
|
21
|
+
+$fragmentSpreads: RelayModernFlowtest_user$ref,
|
22
|
+
+$fragmentType: RelayModernFlowtest_notref$ref,
|
23
23
|
|};
|
@@ -12,10 +12,10 @@
|
|
12
12
|
|
13
13
|
'use strict';
|
14
14
|
|
15
|
-
import type {
|
15
|
+
import type {FragmentType} from 'relay-runtime';
|
16
16
|
|
17
|
-
declare export opaque type RelayModernFlowtest_user$ref:
|
17
|
+
declare export opaque type RelayModernFlowtest_user$ref: FragmentType;
|
18
18
|
export type RelayModernFlowtest_user = {|
|
19
19
|
+name: ?string,
|
20
|
-
+$
|
20
|
+
+$fragmentType: RelayModernFlowtest_user$ref,
|
21
21
|
|};
|
@@ -12,10 +12,10 @@
|
|
12
12
|
|
13
13
|
'use strict';
|
14
14
|
|
15
|
-
import type {
|
15
|
+
import type {FragmentType} from 'relay-runtime';
|
16
16
|
|
17
|
-
declare export opaque type RelayModernFlowtest_users$ref:
|
17
|
+
declare export opaque type RelayModernFlowtest_users$ref: FragmentType;
|
18
18
|
export type RelayModernFlowtest_users = $ReadOnlyArray<{|
|
19
19
|
+name: ?string,
|
20
|
-
+$
|
20
|
+
+$fragmentType: RelayModernFlowtest_users$ref,
|
21
21
|
|}>;
|
package/__flowtests__/__generated__/ReactRelayFragmentContainerFlowtest_viewer.graphql.js.flow
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*
|
7
|
-
* @generated SignedSource<<
|
7
|
+
* @generated SignedSource<<c27f0519266bd559852a29413276ef35>>
|
8
8
|
* @flow
|
9
9
|
* @lightSyntaxTransform
|
10
10
|
* @nogrep
|
@@ -15,20 +15,22 @@
|
|
15
15
|
'use strict';
|
16
16
|
|
17
17
|
/*::
|
18
|
-
import type { ReaderFragment } from 'relay-runtime';
|
19
|
-
import type {
|
20
|
-
declare export opaque type ReactRelayFragmentContainerFlowtest_viewer$
|
21
|
-
|
22
|
-
export type ReactRelayFragmentContainerFlowtest_viewer = {|
|
18
|
+
import type { Fragment, ReaderFragment } from 'relay-runtime';
|
19
|
+
import type { FragmentType } from "relay-runtime";
|
20
|
+
declare export opaque type ReactRelayFragmentContainerFlowtest_viewer$fragmentType: FragmentType;
|
21
|
+
export type ReactRelayFragmentContainerFlowtest_viewer$ref = ReactRelayFragmentContainerFlowtest_viewer$fragmentType;
|
22
|
+
export type ReactRelayFragmentContainerFlowtest_viewer$data = {|
|
23
23
|
+actor: ?{|
|
24
24
|
+id: string,
|
25
25
|
|},
|
26
|
-
+$refType: ReactRelayFragmentContainerFlowtest_viewer$
|
26
|
+
+$refType: ReactRelayFragmentContainerFlowtest_viewer$fragmentType,
|
27
|
+
+$fragmentType: ReactRelayFragmentContainerFlowtest_viewer$fragmentType,
|
27
28
|
|};
|
28
|
-
export type ReactRelayFragmentContainerFlowtest_viewer
|
29
|
+
export type ReactRelayFragmentContainerFlowtest_viewer = ReactRelayFragmentContainerFlowtest_viewer$data;
|
29
30
|
export type ReactRelayFragmentContainerFlowtest_viewer$key = {
|
30
31
|
+$data?: ReactRelayFragmentContainerFlowtest_viewer$data,
|
31
|
-
+$fragmentRefs: ReactRelayFragmentContainerFlowtest_viewer$
|
32
|
+
+$fragmentRefs: ReactRelayFragmentContainerFlowtest_viewer$fragmentType,
|
33
|
+
+$fragmentSpreads: ReactRelayFragmentContainerFlowtest_viewer$fragmentType,
|
32
34
|
...
|
33
35
|
};
|
34
36
|
*/
|
@@ -66,4 +68,7 @@ if (__DEV__) {
|
|
66
68
|
(node/*: any*/).hash = "75147ebd599fe1c406f2dfc7abb164f8";
|
67
69
|
}
|
68
70
|
|
69
|
-
module.exports = node
|
71
|
+
module.exports = ((node/*: any*/)/*: Fragment<
|
72
|
+
ReactRelayFragmentContainerFlowtest_viewer$fragmentType,
|
73
|
+
ReactRelayFragmentContainerFlowtest_viewer$data,
|
74
|
+
>*/);
|
package/__flowtests__/__generated__/ReactRelayFragmentContainerFlowtest_viewer2.graphql.js.flow
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*
|
7
|
-
* @generated SignedSource<<
|
7
|
+
* @generated SignedSource<<b12578ae87267757443fe6795255062c>>
|
8
8
|
* @flow
|
9
9
|
* @lightSyntaxTransform
|
10
10
|
* @nogrep
|
@@ -15,20 +15,22 @@
|
|
15
15
|
'use strict';
|
16
16
|
|
17
17
|
/*::
|
18
|
-
import type { ReaderFragment } from 'relay-runtime';
|
19
|
-
import type {
|
20
|
-
declare export opaque type ReactRelayFragmentContainerFlowtest_viewer2$
|
21
|
-
|
22
|
-
export type ReactRelayFragmentContainerFlowtest_viewer2 = {|
|
18
|
+
import type { Fragment, ReaderFragment } from 'relay-runtime';
|
19
|
+
import type { FragmentType } from "relay-runtime";
|
20
|
+
declare export opaque type ReactRelayFragmentContainerFlowtest_viewer2$fragmentType: FragmentType;
|
21
|
+
export type ReactRelayFragmentContainerFlowtest_viewer2$ref = ReactRelayFragmentContainerFlowtest_viewer2$fragmentType;
|
22
|
+
export type ReactRelayFragmentContainerFlowtest_viewer2$data = {|
|
23
23
|
+actor: ?{|
|
24
24
|
+id: string,
|
25
25
|
|},
|
26
|
-
+$refType: ReactRelayFragmentContainerFlowtest_viewer2$
|
26
|
+
+$refType: ReactRelayFragmentContainerFlowtest_viewer2$fragmentType,
|
27
|
+
+$fragmentType: ReactRelayFragmentContainerFlowtest_viewer2$fragmentType,
|
27
28
|
|};
|
28
|
-
export type ReactRelayFragmentContainerFlowtest_viewer2
|
29
|
+
export type ReactRelayFragmentContainerFlowtest_viewer2 = ReactRelayFragmentContainerFlowtest_viewer2$data;
|
29
30
|
export type ReactRelayFragmentContainerFlowtest_viewer2$key = {
|
30
31
|
+$data?: ReactRelayFragmentContainerFlowtest_viewer2$data,
|
31
|
-
+$fragmentRefs: ReactRelayFragmentContainerFlowtest_viewer2$
|
32
|
+
+$fragmentRefs: ReactRelayFragmentContainerFlowtest_viewer2$fragmentType,
|
33
|
+
+$fragmentSpreads: ReactRelayFragmentContainerFlowtest_viewer2$fragmentType,
|
32
34
|
...
|
33
35
|
};
|
34
36
|
*/
|
@@ -66,4 +68,7 @@ if (__DEV__) {
|
|
66
68
|
(node/*: any*/).hash = "0f55965b7c9aca0d661ebdd96c70e384";
|
67
69
|
}
|
68
70
|
|
69
|
-
module.exports = node
|
71
|
+
module.exports = ((node/*: any*/)/*: Fragment<
|
72
|
+
ReactRelayFragmentContainerFlowtest_viewer2$fragmentType,
|
73
|
+
ReactRelayFragmentContainerFlowtest_viewer2$data,
|
74
|
+
>*/);
|
package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtestQuery.graphql.js.flow
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*
|
7
|
-
* @generated SignedSource<<
|
7
|
+
* @generated SignedSource<<09a9ddb6c78d9503890d798bd1c5e5a6>>
|
8
8
|
* @flow
|
9
9
|
* @lightSyntaxTransform
|
10
10
|
* @nogrep
|
@@ -15,20 +15,23 @@
|
|
15
15
|
'use strict';
|
16
16
|
|
17
17
|
/*::
|
18
|
-
import type { ConcreteRequest } from 'relay-runtime';
|
19
|
-
type ReactRelayPaginationContainerFlowtest_viewer$
|
20
|
-
export type
|
18
|
+
import type { ConcreteRequest, Query } from 'relay-runtime';
|
19
|
+
type ReactRelayPaginationContainerFlowtest_viewer$fragmentType = any;
|
20
|
+
export type ReactRelayPaginationContainerFlowtestQuery$variables = {|
|
21
21
|
count: number,
|
22
22
|
cursor?: ?string,
|
23
23
|
|};
|
24
|
-
export type
|
24
|
+
export type ReactRelayPaginationContainerFlowtestQueryVariables = ReactRelayPaginationContainerFlowtestQuery$variables;
|
25
|
+
export type ReactRelayPaginationContainerFlowtestQuery$data = {|
|
25
26
|
+viewer: ?{|
|
26
|
-
+$fragmentRefs: ReactRelayPaginationContainerFlowtest_viewer$
|
27
|
+
+$fragmentRefs: ReactRelayPaginationContainerFlowtest_viewer$fragmentType,
|
28
|
+
+$fragmentSpreads: ReactRelayPaginationContainerFlowtest_viewer$fragmentType,
|
27
29
|
|},
|
28
30
|
|};
|
31
|
+
export type ReactRelayPaginationContainerFlowtestQueryResponse = ReactRelayPaginationContainerFlowtestQuery$data;
|
29
32
|
export type ReactRelayPaginationContainerFlowtestQuery = {|
|
30
33
|
variables: ReactRelayPaginationContainerFlowtestQueryVariables,
|
31
|
-
response:
|
34
|
+
response: ReactRelayPaginationContainerFlowtestQuery$data,
|
32
35
|
|};
|
33
36
|
*/
|
34
37
|
|
@@ -219,4 +222,7 @@ if (__DEV__) {
|
|
219
222
|
(node/*: any*/).hash = "712afeafa1f51bfe391719629a0fcea0";
|
220
223
|
}
|
221
224
|
|
222
|
-
module.exports = node
|
225
|
+
module.exports = ((node/*: any*/)/*: Query<
|
226
|
+
ReactRelayPaginationContainerFlowtestQuery$variables,
|
227
|
+
ReactRelayPaginationContainerFlowtestQuery$data,
|
228
|
+
>*/);
|
package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtest_viewer.graphql.js.flow
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*
|
7
|
-
* @generated SignedSource<<
|
7
|
+
* @generated SignedSource<<286715cd93d8b150ae76ee0fa8b7b797>>
|
8
8
|
* @flow
|
9
9
|
* @lightSyntaxTransform
|
10
10
|
* @nogrep
|
@@ -15,11 +15,11 @@
|
|
15
15
|
'use strict';
|
16
16
|
|
17
17
|
/*::
|
18
|
-
import type { ReaderFragment } from 'relay-runtime';
|
19
|
-
import type {
|
20
|
-
declare export opaque type ReactRelayPaginationContainerFlowtest_viewer$
|
21
|
-
|
22
|
-
export type ReactRelayPaginationContainerFlowtest_viewer = {|
|
18
|
+
import type { Fragment, ReaderFragment } from 'relay-runtime';
|
19
|
+
import type { FragmentType } from "relay-runtime";
|
20
|
+
declare export opaque type ReactRelayPaginationContainerFlowtest_viewer$fragmentType: FragmentType;
|
21
|
+
export type ReactRelayPaginationContainerFlowtest_viewer$ref = ReactRelayPaginationContainerFlowtest_viewer$fragmentType;
|
22
|
+
export type ReactRelayPaginationContainerFlowtest_viewer$data = {|
|
23
23
|
+account_user: ?{|
|
24
24
|
+friends: ?{|
|
25
25
|
+edges: ?$ReadOnlyArray<?{|
|
@@ -29,12 +29,14 @@ export type ReactRelayPaginationContainerFlowtest_viewer = {|
|
|
29
29
|
|}>,
|
30
30
|
|},
|
31
31
|
|},
|
32
|
-
+$refType: ReactRelayPaginationContainerFlowtest_viewer$
|
32
|
+
+$refType: ReactRelayPaginationContainerFlowtest_viewer$fragmentType,
|
33
|
+
+$fragmentType: ReactRelayPaginationContainerFlowtest_viewer$fragmentType,
|
33
34
|
|};
|
34
|
-
export type ReactRelayPaginationContainerFlowtest_viewer
|
35
|
+
export type ReactRelayPaginationContainerFlowtest_viewer = ReactRelayPaginationContainerFlowtest_viewer$data;
|
35
36
|
export type ReactRelayPaginationContainerFlowtest_viewer$key = {
|
36
37
|
+$data?: ReactRelayPaginationContainerFlowtest_viewer$data,
|
37
|
-
+$fragmentRefs: ReactRelayPaginationContainerFlowtest_viewer$
|
38
|
+
+$fragmentRefs: ReactRelayPaginationContainerFlowtest_viewer$fragmentType,
|
39
|
+
+$fragmentSpreads: ReactRelayPaginationContainerFlowtest_viewer$fragmentType,
|
38
40
|
...
|
39
41
|
};
|
40
42
|
*/
|
@@ -158,4 +160,7 @@ if (__DEV__) {
|
|
158
160
|
(node/*: any*/).hash = "0db8995009ebfee6165f6bbaa465d13f";
|
159
161
|
}
|
160
162
|
|
161
|
-
module.exports = node
|
163
|
+
module.exports = ((node/*: any*/)/*: Fragment<
|
164
|
+
ReactRelayPaginationContainerFlowtest_viewer$fragmentType,
|
165
|
+
ReactRelayPaginationContainerFlowtest_viewer$data,
|
166
|
+
>*/);
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*
|
7
|
-
* @generated SignedSource<<
|
7
|
+
* @generated SignedSource<<f6b9e7c61743d190cfd75f6119f23027>>
|
8
8
|
* @flow
|
9
9
|
* @lightSyntaxTransform
|
10
10
|
* @nogrep
|
@@ -15,20 +15,23 @@
|
|
15
15
|
'use strict';
|
16
16
|
|
17
17
|
/*::
|
18
|
-
import type { ConcreteRequest } from 'relay-runtime';
|
19
|
-
type ReactRelayRefetchContainerFlowtest_viewer$
|
20
|
-
export type
|
18
|
+
import type { ConcreteRequest, Query } from 'relay-runtime';
|
19
|
+
type ReactRelayRefetchContainerFlowtest_viewer$fragmentType = any;
|
20
|
+
export type ReactRelayRefetchContainerFlowtestQuery$variables = {|
|
21
21
|
count: number,
|
22
22
|
cursor?: ?string,
|
23
23
|
|};
|
24
|
-
export type
|
24
|
+
export type ReactRelayRefetchContainerFlowtestQueryVariables = ReactRelayRefetchContainerFlowtestQuery$variables;
|
25
|
+
export type ReactRelayRefetchContainerFlowtestQuery$data = {|
|
25
26
|
+viewer: ?{|
|
26
|
-
+$fragmentRefs: ReactRelayRefetchContainerFlowtest_viewer$
|
27
|
+
+$fragmentRefs: ReactRelayRefetchContainerFlowtest_viewer$fragmentType,
|
28
|
+
+$fragmentSpreads: ReactRelayRefetchContainerFlowtest_viewer$fragmentType,
|
27
29
|
|},
|
28
30
|
|};
|
31
|
+
export type ReactRelayRefetchContainerFlowtestQueryResponse = ReactRelayRefetchContainerFlowtestQuery$data;
|
29
32
|
export type ReactRelayRefetchContainerFlowtestQuery = {|
|
30
33
|
variables: ReactRelayRefetchContainerFlowtestQueryVariables,
|
31
|
-
response:
|
34
|
+
response: ReactRelayRefetchContainerFlowtestQuery$data,
|
32
35
|
|};
|
33
36
|
*/
|
34
37
|
|
@@ -219,4 +222,7 @@ if (__DEV__) {
|
|
219
222
|
(node/*: any*/).hash = "ce05ae9de6327d14ff0f3813ec77e594";
|
220
223
|
}
|
221
224
|
|
222
|
-
module.exports = node
|
225
|
+
module.exports = ((node/*: any*/)/*: Query<
|
226
|
+
ReactRelayRefetchContainerFlowtestQuery$variables,
|
227
|
+
ReactRelayRefetchContainerFlowtestQuery$data,
|
228
|
+
>*/);
|
package/__flowtests__/__generated__/ReactRelayRefetchContainerFlowtest_viewer.graphql.js.flow
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*
|
7
|
-
* @generated SignedSource<<
|
7
|
+
* @generated SignedSource<<b1c96c99444f3fade031de7ef4804e86>>
|
8
8
|
* @flow
|
9
9
|
* @lightSyntaxTransform
|
10
10
|
* @nogrep
|
@@ -15,11 +15,11 @@
|
|
15
15
|
'use strict';
|
16
16
|
|
17
17
|
/*::
|
18
|
-
import type { ReaderFragment } from 'relay-runtime';
|
19
|
-
import type {
|
20
|
-
declare export opaque type ReactRelayRefetchContainerFlowtest_viewer$
|
21
|
-
|
22
|
-
export type ReactRelayRefetchContainerFlowtest_viewer = {|
|
18
|
+
import type { Fragment, ReaderFragment } from 'relay-runtime';
|
19
|
+
import type { FragmentType } from "relay-runtime";
|
20
|
+
declare export opaque type ReactRelayRefetchContainerFlowtest_viewer$fragmentType: FragmentType;
|
21
|
+
export type ReactRelayRefetchContainerFlowtest_viewer$ref = ReactRelayRefetchContainerFlowtest_viewer$fragmentType;
|
22
|
+
export type ReactRelayRefetchContainerFlowtest_viewer$data = {|
|
23
23
|
+account_user: ?{|
|
24
24
|
+friends: ?{|
|
25
25
|
+edges: ?$ReadOnlyArray<?{|
|
@@ -29,12 +29,14 @@ export type ReactRelayRefetchContainerFlowtest_viewer = {|
|
|
29
29
|
|}>,
|
30
30
|
|},
|
31
31
|
|},
|
32
|
-
+$refType: ReactRelayRefetchContainerFlowtest_viewer$
|
32
|
+
+$refType: ReactRelayRefetchContainerFlowtest_viewer$fragmentType,
|
33
|
+
+$fragmentType: ReactRelayRefetchContainerFlowtest_viewer$fragmentType,
|
33
34
|
|};
|
34
|
-
export type ReactRelayRefetchContainerFlowtest_viewer
|
35
|
+
export type ReactRelayRefetchContainerFlowtest_viewer = ReactRelayRefetchContainerFlowtest_viewer$data;
|
35
36
|
export type ReactRelayRefetchContainerFlowtest_viewer$key = {
|
36
37
|
+$data?: ReactRelayRefetchContainerFlowtest_viewer$data,
|
37
|
-
+$fragmentRefs: ReactRelayRefetchContainerFlowtest_viewer$
|
38
|
+
+$fragmentRefs: ReactRelayRefetchContainerFlowtest_viewer$fragmentType,
|
39
|
+
+$fragmentSpreads: ReactRelayRefetchContainerFlowtest_viewer$fragmentType,
|
38
40
|
...
|
39
41
|
};
|
40
42
|
*/
|
@@ -158,4 +160,7 @@ if (__DEV__) {
|
|
158
160
|
(node/*: any*/).hash = "cf098b4248d8ddfacfc0d356838697bb";
|
159
161
|
}
|
160
162
|
|
161
|
-
module.exports = node
|
163
|
+
module.exports = ((node/*: any*/)/*: Fragment<
|
164
|
+
ReactRelayRefetchContainerFlowtest_viewer$fragmentType,
|
165
|
+
ReactRelayRefetchContainerFlowtest_viewer$data,
|
166
|
+
>*/);
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*
|
7
|
-
* @generated SignedSource<<
|
7
|
+
* @generated SignedSource<<1a8e0eaf907404c8ccc8c992f932a5f2>>
|
8
8
|
* @flow
|
9
9
|
* @lightSyntaxTransform
|
10
10
|
* @nogrep
|
@@ -15,20 +15,23 @@
|
|
15
15
|
'use strict';
|
16
16
|
|
17
17
|
/*::
|
18
|
-
import type { ReaderFragment } from 'relay-runtime';
|
19
|
-
type RelayModernFlowtest_user$
|
20
|
-
import type {
|
21
|
-
declare export opaque type RelayModernFlowtest_badref$
|
22
|
-
|
23
|
-
export type RelayModernFlowtest_badref = {|
|
18
|
+
import type { Fragment, ReaderFragment } from 'relay-runtime';
|
19
|
+
type RelayModernFlowtest_user$fragmentType = any;
|
20
|
+
import type { FragmentType } from "relay-runtime";
|
21
|
+
declare export opaque type RelayModernFlowtest_badref$fragmentType: FragmentType;
|
22
|
+
export type RelayModernFlowtest_badref$ref = RelayModernFlowtest_badref$fragmentType;
|
23
|
+
export type RelayModernFlowtest_badref$data = {|
|
24
24
|
+id: string,
|
25
|
-
+$fragmentRefs: RelayModernFlowtest_user$
|
26
|
-
+$
|
25
|
+
+$fragmentRefs: RelayModernFlowtest_user$fragmentType,
|
26
|
+
+$fragmentSpreads: RelayModernFlowtest_user$fragmentType,
|
27
|
+
+$refType: RelayModernFlowtest_badref$fragmentType,
|
28
|
+
+$fragmentType: RelayModernFlowtest_badref$fragmentType,
|
27
29
|
|};
|
28
|
-
export type RelayModernFlowtest_badref
|
30
|
+
export type RelayModernFlowtest_badref = RelayModernFlowtest_badref$data;
|
29
31
|
export type RelayModernFlowtest_badref$key = {
|
30
32
|
+$data?: RelayModernFlowtest_badref$data,
|
31
|
-
+$fragmentRefs: RelayModernFlowtest_badref$
|
33
|
+
+$fragmentRefs: RelayModernFlowtest_badref$fragmentType,
|
34
|
+
+$fragmentSpreads: RelayModernFlowtest_badref$fragmentType,
|
32
35
|
...
|
33
36
|
};
|
34
37
|
*/
|
@@ -60,4 +63,7 @@ if (__DEV__) {
|
|
60
63
|
(node/*: any*/).hash = "a04dc2854770919bd070bdc717de7812";
|
61
64
|
}
|
62
65
|
|
63
|
-
module.exports = node
|
66
|
+
module.exports = ((node/*: any*/)/*: Fragment<
|
67
|
+
RelayModernFlowtest_badref$fragmentType,
|
68
|
+
RelayModernFlowtest_badref$data,
|
69
|
+
>*/);
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*
|
7
|
-
* @generated SignedSource<<
|
7
|
+
* @generated SignedSource<<b393a21441b3900af65ee2b7b6425e90>>
|
8
8
|
* @flow
|
9
9
|
* @lightSyntaxTransform
|
10
10
|
* @nogrep
|
@@ -15,20 +15,23 @@
|
|
15
15
|
'use strict';
|
16
16
|
|
17
17
|
/*::
|
18
|
-
import type { ReaderFragment } from 'relay-runtime';
|
19
|
-
type RelayModernFlowtest_user$
|
20
|
-
import type {
|
21
|
-
declare export opaque type RelayModernFlowtest_notref$
|
22
|
-
|
23
|
-
export type RelayModernFlowtest_notref = {|
|
18
|
+
import type { Fragment, ReaderFragment } from 'relay-runtime';
|
19
|
+
type RelayModernFlowtest_user$fragmentType = any;
|
20
|
+
import type { FragmentType } from "relay-runtime";
|
21
|
+
declare export opaque type RelayModernFlowtest_notref$fragmentType: FragmentType;
|
22
|
+
export type RelayModernFlowtest_notref$ref = RelayModernFlowtest_notref$fragmentType;
|
23
|
+
export type RelayModernFlowtest_notref$data = {|
|
24
24
|
+id: string,
|
25
|
-
+$fragmentRefs: RelayModernFlowtest_user$
|
26
|
-
+$
|
25
|
+
+$fragmentRefs: RelayModernFlowtest_user$fragmentType,
|
26
|
+
+$fragmentSpreads: RelayModernFlowtest_user$fragmentType,
|
27
|
+
+$refType: RelayModernFlowtest_notref$fragmentType,
|
28
|
+
+$fragmentType: RelayModernFlowtest_notref$fragmentType,
|
27
29
|
|};
|
28
|
-
export type RelayModernFlowtest_notref
|
30
|
+
export type RelayModernFlowtest_notref = RelayModernFlowtest_notref$data;
|
29
31
|
export type RelayModernFlowtest_notref$key = {
|
30
32
|
+$data?: RelayModernFlowtest_notref$data,
|
31
|
-
+$fragmentRefs: RelayModernFlowtest_notref$
|
33
|
+
+$fragmentRefs: RelayModernFlowtest_notref$fragmentType,
|
34
|
+
+$fragmentSpreads: RelayModernFlowtest_notref$fragmentType,
|
32
35
|
...
|
33
36
|
};
|
34
37
|
*/
|
@@ -60,4 +63,7 @@ if (__DEV__) {
|
|
60
63
|
(node/*: any*/).hash = "d61c43d07b2fe8f623c9b84fcdf70ac8";
|
61
64
|
}
|
62
65
|
|
63
|
-
module.exports = node
|
66
|
+
module.exports = ((node/*: any*/)/*: Fragment<
|
67
|
+
RelayModernFlowtest_notref$fragmentType,
|
68
|
+
RelayModernFlowtest_notref$data,
|
69
|
+
>*/);
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*
|
7
|
-
* @generated SignedSource<<
|
7
|
+
* @generated SignedSource<<7b8a6fabf414967ed909ad0051922e66>>
|
8
8
|
* @flow
|
9
9
|
* @lightSyntaxTransform
|
10
10
|
* @nogrep
|
@@ -15,18 +15,20 @@
|
|
15
15
|
'use strict';
|
16
16
|
|
17
17
|
/*::
|
18
|
-
import type { ReaderFragment } from 'relay-runtime';
|
19
|
-
import type {
|
20
|
-
declare export opaque type RelayModernFlowtest_user$
|
21
|
-
|
22
|
-
export type RelayModernFlowtest_user = {|
|
18
|
+
import type { Fragment, ReaderFragment } from 'relay-runtime';
|
19
|
+
import type { FragmentType } from "relay-runtime";
|
20
|
+
declare export opaque type RelayModernFlowtest_user$fragmentType: FragmentType;
|
21
|
+
export type RelayModernFlowtest_user$ref = RelayModernFlowtest_user$fragmentType;
|
22
|
+
export type RelayModernFlowtest_user$data = {|
|
23
23
|
+name: ?string,
|
24
|
-
+$refType: RelayModernFlowtest_user$
|
24
|
+
+$refType: RelayModernFlowtest_user$fragmentType,
|
25
|
+
+$fragmentType: RelayModernFlowtest_user$fragmentType,
|
25
26
|
|};
|
26
|
-
export type RelayModernFlowtest_user
|
27
|
+
export type RelayModernFlowtest_user = RelayModernFlowtest_user$data;
|
27
28
|
export type RelayModernFlowtest_user$key = {
|
28
29
|
+$data?: RelayModernFlowtest_user$data,
|
29
|
-
+$fragmentRefs: RelayModernFlowtest_user$
|
30
|
+
+$fragmentRefs: RelayModernFlowtest_user$fragmentType,
|
31
|
+
+$fragmentSpreads: RelayModernFlowtest_user$fragmentType,
|
30
32
|
...
|
31
33
|
};
|
32
34
|
*/
|
@@ -53,4 +55,7 @@ if (__DEV__) {
|
|
53
55
|
(node/*: any*/).hash = "18a730295ff54e88446f4f000f5fef7e";
|
54
56
|
}
|
55
57
|
|
56
|
-
module.exports = node
|
58
|
+
module.exports = ((node/*: any*/)/*: Fragment<
|
59
|
+
RelayModernFlowtest_user$fragmentType,
|
60
|
+
RelayModernFlowtest_user$data,
|
61
|
+
>*/);
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*
|
7
|
-
* @generated SignedSource<<
|
7
|
+
* @generated SignedSource<<5a006bad6c8a36d29a11955d582c81cf>>
|
8
8
|
* @flow
|
9
9
|
* @lightSyntaxTransform
|
10
10
|
* @nogrep
|
@@ -15,18 +15,20 @@
|
|
15
15
|
'use strict';
|
16
16
|
|
17
17
|
/*::
|
18
|
-
import type { ReaderFragment } from 'relay-runtime';
|
19
|
-
import type {
|
20
|
-
declare export opaque type RelayModernFlowtest_users$
|
21
|
-
|
22
|
-
export type RelayModernFlowtest_users = $ReadOnlyArray<{|
|
18
|
+
import type { Fragment, ReaderFragment } from 'relay-runtime';
|
19
|
+
import type { FragmentType } from "relay-runtime";
|
20
|
+
declare export opaque type RelayModernFlowtest_users$fragmentType: FragmentType;
|
21
|
+
export type RelayModernFlowtest_users$ref = RelayModernFlowtest_users$fragmentType;
|
22
|
+
export type RelayModernFlowtest_users$data = $ReadOnlyArray<{|
|
23
23
|
+name: ?string,
|
24
|
-
+$refType: RelayModernFlowtest_users$
|
24
|
+
+$refType: RelayModernFlowtest_users$fragmentType,
|
25
|
+
+$fragmentType: RelayModernFlowtest_users$fragmentType,
|
25
26
|
|}>;
|
26
|
-
export type RelayModernFlowtest_users
|
27
|
+
export type RelayModernFlowtest_users = RelayModernFlowtest_users$data;
|
27
28
|
export type RelayModernFlowtest_users$key = $ReadOnlyArray<{
|
28
29
|
+$data?: RelayModernFlowtest_users$data,
|
29
|
-
+$fragmentRefs: RelayModernFlowtest_users$
|
30
|
+
+$fragmentRefs: RelayModernFlowtest_users$fragmentType,
|
31
|
+
+$fragmentSpreads: RelayModernFlowtest_users$fragmentType,
|
30
32
|
...
|
31
33
|
}>;
|
32
34
|
*/
|
@@ -55,4 +57,7 @@ if (__DEV__) {
|
|
55
57
|
(node/*: any*/).hash = "4e6f0e70d48ec58651c17e3150c63d05";
|
56
58
|
}
|
57
59
|
|
58
|
-
module.exports = node
|
60
|
+
module.exports = ((node/*: any*/)/*: Fragment<
|
61
|
+
RelayModernFlowtest_users$fragmentType,
|
62
|
+
RelayModernFlowtest_users$data,
|
63
|
+
>*/);
|
package/hooks.js
CHANGED