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.
Files changed (35) hide show
  1. package/ReactRelayContext.js +1 -1
  2. package/ReactRelayTypes.js.flow +9 -9
  3. package/__flowtests__/RelayModern-flowtest.js.flow +5 -5
  4. package/__flowtests__/RelayModernFlowtest_badref.graphql.js.flow +4 -4
  5. package/__flowtests__/RelayModernFlowtest_notref.graphql.js.flow +4 -4
  6. package/__flowtests__/RelayModernFlowtest_user.graphql.js.flow +3 -3
  7. package/__flowtests__/RelayModernFlowtest_users.graphql.js.flow +3 -3
  8. package/__flowtests__/__generated__/ReactRelayFragmentContainerFlowtest_viewer.graphql.js.flow +15 -10
  9. package/__flowtests__/__generated__/ReactRelayFragmentContainerFlowtest_viewer2.graphql.js.flow +15 -10
  10. package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtestQuery.graphql.js.flow +14 -8
  11. package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtest_viewer.graphql.js.flow +15 -10
  12. package/__flowtests__/__generated__/ReactRelayRefetchContainerFlowtestQuery.graphql.js.flow +14 -8
  13. package/__flowtests__/__generated__/ReactRelayRefetchContainerFlowtest_viewer.graphql.js.flow +15 -10
  14. package/__flowtests__/__generated__/RelayModernFlowtest_badref.graphql.js.flow +18 -12
  15. package/__flowtests__/__generated__/RelayModernFlowtest_notref.graphql.js.flow +18 -12
  16. package/__flowtests__/__generated__/RelayModernFlowtest_user.graphql.js.flow +15 -10
  17. package/__flowtests__/__generated__/RelayModernFlowtest_users.graphql.js.flow +15 -10
  18. package/hooks.js +1 -1
  19. package/index.js +1 -1
  20. package/legacy.js +1 -1
  21. package/lib/relay-hooks/MatchContainer.js +1 -1
  22. package/package.json +2 -2
  23. package/react-relay-hooks.js +1 -1
  24. package/react-relay-hooks.min.js +1 -1
  25. package/react-relay-legacy.js +1 -1
  26. package/react-relay-legacy.min.js +1 -1
  27. package/react-relay.js +1 -1
  28. package/react-relay.min.js +1 -1
  29. package/relay-hooks/MatchContainer.js.flow +2 -2
  30. package/relay-hooks/__flowtests__/utils.js.flow +8 -12
  31. package/relay-hooks/useBlockingPaginationFragment.js.flow +2 -2
  32. package/relay-hooks/useFragment.js.flow +5 -5
  33. package/relay-hooks/useIsParentQueryActive.js.flow +2 -2
  34. package/relay-hooks/usePaginationFragment.js.flow +2 -2
  35. package/relay-hooks/useRefetchableFragment.js.flow +2 -2
@@ -11,14 +11,14 @@
11
11
 
12
12
  'use strict';
13
13
 
14
- import type {FragmentReference, GraphQLTaggedNode} from 'relay-runtime';
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, +$fragmentRefs: FragmentReference, ...},
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
- FragmentReference,
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, +$fragmentRefs: FragmentReference, ...},
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
- FragmentReference,
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, +$fragmentRefs: FragmentReference, ...},
43
+ TKey: ?{+$data?: mixed, +$fragmentSpreads: FragmentType, ...},
44
44
  >(
45
45
  fragmentInput: GraphQLTaggedNode,
46
46
  fragmentRef: TKey,