1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | 'use strict';
|
12 |
|
13 | var warning = require("fbjs/lib/warning");
|
14 |
|
15 | var _require = require('react'),
|
16 | useRef = _require.useRef;
|
17 |
|
18 | function useStaticFragmentNodeWarning(fragmentNode, warningContext) {
|
19 | if (process.env.NODE_ENV !== "production") {
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | var initialPropRef = useRef(fragmentNode.name);
|
25 | process.env.NODE_ENV !== "production" ? warning(initialPropRef.current === fragmentNode.name, 'Relay: The %s has to remain the same over the lifetime of a component. ' + 'Changing it is not supported and will result in unexpected behavior.', warningContext) : void 0;
|
26 | }
|
27 | }
|
28 |
|
29 | module.exports = useStaticFragmentNodeWarning; |
\ | No newline at end of file |