Skip to content

Commit

Permalink
Export ProfilerContext
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgasson committed Aug 24, 2022
1 parent 4271a06 commit 2081d40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/react-relay/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const useRelayEnvironment = require('./relay-hooks/useRelayEnvironment');
const useSubscribeToInvalidationState = require('./relay-hooks/useSubscribeToInvalidationState');
const useSubscription = require('./relay-hooks/useSubscription');
const RelayRuntime = require('relay-runtime');
const ProfilerContext = require('./relay-hooks/ProfilerContext');

export type * from './relay-hooks/EntryPointTypes.flow';
export type {
Expand Down Expand Up @@ -77,6 +78,8 @@ module.exports = {
EntryPointContainer: EntryPointContainer,
RelayEnvironmentProvider: RelayEnvironmentProvider,

ProfilerContext: ProfilerContext,

fetchQuery: RelayRuntime.fetchQuery,

loadQuery: loadQuery,
Expand Down
3 changes: 3 additions & 0 deletions packages/react-relay/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const useRelayEnvironment = require('./relay-hooks/useRelayEnvironment');
const useSubscribeToInvalidationState = require('./relay-hooks/useSubscribeToInvalidationState');
const useSubscription = require('./relay-hooks/useSubscription');
const RelayRuntime = require('relay-runtime');
const ProfilerContext = require('./relay-hooks/ProfilerContext');

export type {
$FragmentRef,
Expand Down Expand Up @@ -107,6 +108,8 @@ module.exports = {
EntryPointContainer: EntryPointContainer,
RelayEnvironmentProvider: RelayEnvironmentProvider,

ProfilerContext: ProfilerContext,

fetchQuery: RelayRuntime.fetchQuery,

loadQuery: loadQuery,
Expand Down

0 comments on commit 2081d40

Please sign in to comment.