Skip to content

Commit 8306cdb

Browse files
alunyovfacebook-github-bot
authored andcommitted
Remove warning from HooksImplementation
Reviewed By: monicatang Differential Revision: D53194714 fbshipit-source-id: 6a7624a07190686d92db0f6d4f2aee57a6d5064b
1 parent 05b773a commit 8306cdb

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/react-relay/relay-hooks/HooksImplementation.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ import type {UseRefetchableFragmentType} from './legacy/useRefetchableFragment';
1616
import typeof useFragment from './useFragment';
1717
import type {UsePaginationFragmentType} from './usePaginationFragment';
1818

19-
const warning = require('warning');
20-
2119
type HooksImplementation = {
2220
useFragment: useFragment,
2321
usePaginationFragment: UsePaginationFragmentType,
@@ -28,10 +26,6 @@ type HooksImplementation = {
2826
let implementation: HooksImplementation | null = null;
2927

3028
function inject(impl: HooksImplementation): void {
31-
warning(
32-
implementation === null,
33-
'Relay HooksImplementation was injected twice.',
34-
);
3529
implementation = impl;
3630
}
3731

0 commit comments

Comments
 (0)