Skip to content

Commit 9f55d93

Browse files
authored
fix unable override referencePlugin prop (#3938)
* fix * fix
1 parent 2500288 commit 9f55d93

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.changeset/cyan-moles-retire.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphiql': patch
3+
---
4+
5+
fix unable override `referencePlugin` prop

packages/graphiql/src/GraphiQL.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ const GraphiQL_: FC<GraphiQLProps> = ({
100100
onTogglePluginVisibility,
101101
operationName,
102102
plugins = [],
103+
referencePlugin = DOC_EXPLORER_PLUGIN,
103104
query,
104105
response,
105106
schema,
@@ -139,8 +140,8 @@ const GraphiQL_: FC<GraphiQLProps> = ({
139140
onSchemaChange,
140141
onTabChange,
141142
onTogglePluginVisibility,
142-
plugins: [DOC_EXPLORER_PLUGIN, HISTORY_PLUGIN, ...plugins],
143-
referencePlugin: DOC_EXPLORER_PLUGIN,
143+
plugins: [referencePlugin, HISTORY_PLUGIN, ...plugins],
144+
referencePlugin,
144145
visiblePlugin,
145146
operationName,
146147
query,

0 commit comments

Comments
 (0)