Skip to content

Commit e728457

Browse files
committed
fix schema reloading
1 parent 6078c74 commit e728457

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

packages/graphql-playground-electron/src/renderer/components/App.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Playground, {
88
selectNextTab,
99
selectPrevTab,
1010
closeSelectedTab,
11-
fetchSchema,
11+
refetchSchema,
1212
newSession,
1313
store,
1414
getSessionsState,
@@ -92,7 +92,7 @@ interface ReduxProps {
9292
selectNextTab: () => void
9393
selectPrevTab: () => void
9494
closeSelectedTab: () => void
95-
fetchSchema: () => void
95+
refetchSchema: () => void
9696
newSession: (endpoint: string) => void
9797
saveFile: () => void
9898
newFileTab: (fileName: string, filePath: string, file: string) => void
@@ -228,7 +228,7 @@ class App extends React.Component<ReduxProps, State> {
228228
}
229229

230230
reloadSchema = () => {
231-
this.props.fetchSchema()
231+
this.props.refetchSchema()
232232
}
233233

234234
componentDidMount() {
@@ -653,7 +653,7 @@ export default connect(mapStateToProps, {
653653
selectNextTab,
654654
selectPrevTab,
655655
closeSelectedTab,
656-
fetchSchema,
656+
refetchSchema,
657657
newSession,
658658
saveFile,
659659
newFileTab,

packages/graphql-playground-electron/yarn.lock

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1848,7 +1848,7 @@ code-point-at@^1.0.0:
18481848
version "1.1.0"
18491849
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
18501850

1851-
codemirror-graphql@^0.6.11, codemirror-graphql@^0.6.12, codemirror-graphql@timsuchanek/codemirror-graphql#details-fix:
1851+
codemirror-graphql@^0.6.11, codemirror-graphql@^0.6.12, "codemirror-graphql@github:timsuchanek/codemirror-graphql#details-fix":
18521852
version "0.6.12"
18531853
resolved "https://codeload.github.com/timsuchanek/codemirror-graphql/tar.gz/801ec32683c38d6dc0f8f7bc19014a111edc9ebd"
18541854
dependencies:
@@ -7798,8 +7798,9 @@ styled-components@^3.1.6:
77987798
postcss-load-plugins "^2.2.0"
77997799
styled-jsx "^0.5.7"
78007800

7801-
styled-jsx-postcss@timsuchanek/styled-jsx-postcss#build3:
7801+
"styled-jsx-postcss@github:timsuchanek/styled-jsx-postcss#build3":
78027802
version "0.2.0"
7803+
uid "677ee0fb7f9138047a00e03c8c3e44adbb33cf2a"
78037804
resolved "https://codeload.github.com/timsuchanek/styled-jsx-postcss/tar.gz/677ee0fb7f9138047a00e03c8c3e44adbb33cf2a"
78047805
dependencies:
78057806
babel-traverse "^6.21.0"

packages/graphql-playground-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphql-playground-react",
3-
"version": "1.6.4",
3+
"version": "1.6.5-beta.1",
44
"main": "./lib/lib.js",
55
"typings": "./lib/lib.d.ts",
66
"description": "GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration).",

0 commit comments

Comments
 (0)