File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,11 @@ The data from one version used in the function from another could produce confus
46
46
results.
47
47
48
48
Duplicate modules of GraphQL.JS of the same version may also fail at runtime, sometimes in
49
- unexpected ways. This is because GraphQL.JS relies on the identity of the module for
50
- key features. Most significantly, unique symbols are used throughout GraphQL.JS to
51
- identify and distinguish between GraphQL schema elements, such as the particular GraphQL type.
52
- Also, special exported constants like ` BREAK ` allow library users to manipulate visitor
53
- behavior, also relying on the module identity .
49
+ unexpected ways. This happens because GraphQL.JS relies on module-scoped objects for key
50
+ features. For example, GraphQL.JS uses unique symbols internally to distinguish between
51
+ different schema elements, which underpin the exported predicates such as ` isScalarType() ` ,
52
+ ` isObjectType() ` , etc. Similarly, the exported constant ` BREAK ` allows library users to
53
+ control visitor behavior, but will fail when passed to a duplicate module .
54
54
55
55
To ensure that only a single GraphQL.JS module is used, all libraries depending on GraphQL.JS
56
56
should use the appropriate peer dependency mechanism, as provided by their package manager,
You can’t perform that action at this time.
0 commit comments