Skip to content

Commit 12f602a

Browse files
committed
prose
1 parent a4570ba commit 12f602a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

website/pages/docs/development-mode.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ The data from one version used in the function from another could produce confus
4646
results.
4747

4848
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.
5454

5555
To ensure that only a single GraphQL.JS module is used, all libraries depending on GraphQL.JS
5656
should use the appropriate peer dependency mechanism, as provided by their package manager,

0 commit comments

Comments
 (0)