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
@@ -11,14 +11,14 @@
|
|
11
11
|
|
12
12
|
'use strict';
|
13
13
|
|
14
|
-
import type {
|
14
|
+
import type {FragmentType, GraphQLTaggedNode} from 'relay-runtime';
|
15
15
|
|
16
16
|
const useIsOperationNodeActive = require('./useIsOperationNodeActive');
|
17
17
|
const useStaticFragmentNodeWarning = require('./useStaticFragmentNodeWarning');
|
18
18
|
const {getFragment} = require('relay-runtime');
|
19
19
|
|
20
20
|
function useIsParentQueryActive<
|
21
|
-
TKey: ?{+$data?: mixed, +$
|
21
|
+
TKey: ?{+$data?: mixed, +$fragmentSpreads: FragmentType, ...},
|
22
22
|
>(fragmentInput: GraphQLTaggedNode, fragmentRef: TKey): boolean {
|
23
23
|
const fragmentNode = getFragment(fragmentInput);
|
24
24
|
useStaticFragmentNodeWarning(
|
@@ -16,7 +16,7 @@
|
|
16
16
|
import type {LoadMoreFn, UseLoadMoreFunctionArgs} from './useLoadMoreFunction';
|
17
17
|
import type {RefetchFnDynamic} from './useRefetchableFragmentNode';
|
18
18
|
import type {
|
19
|
-
|
19
|
+
FragmentType,
|
20
20
|
GraphQLResponse,
|
21
21
|
GraphQLTaggedNode,
|
22
22
|
Observer,
|
@@ -46,7 +46,7 @@ export type ReturnType<TQuery: OperationType, TKey, TFragmentData> = {|
|
|
46
46
|
|
47
47
|
function usePaginationFragment<
|
48
48
|
TQuery: OperationType,
|
49
|
-
TKey: ?{+$data?: mixed, +$
|
49
|
+
TKey: ?{+$data?: mixed, +$fragmentSpreads: FragmentType, ...},
|
50
50
|
>(
|
51
51
|
fragmentInput: GraphQLTaggedNode,
|
52
52
|
parentFragmentRef: TKey,
|
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
import type {RefetchFnDynamic} from './useRefetchableFragmentNode';
|
17
17
|
import type {
|
18
|
-
|
18
|
+
FragmentType,
|
19
19
|
GraphQLTaggedNode,
|
20
20
|
OperationType,
|
21
21
|
} from 'relay-runtime';
|
@@ -40,7 +40,7 @@ type ReturnType<TQuery: OperationType, TKey: ?{+$data?: mixed, ...}> = [
|
|
40
40
|
|
41
41
|
function useRefetchableFragment<
|
42
42
|
TQuery: OperationType,
|
43
|
-
TKey: ?{+$data?: mixed, +$
|
43
|
+
TKey: ?{+$data?: mixed, +$fragmentSpreads: FragmentType, ...},
|
44
44
|
>(
|
45
45
|
fragmentInput: GraphQLTaggedNode,
|
46
46
|
fragmentRef: TKey,
|