Skip to content

Commit

Permalink
Merge pull request #647 from dulmandakh/react-16.8.6
Browse files Browse the repository at this point in the history
bump react to 16.8.6
  • Loading branch information
phalt authored May 21, 2019
2 parents 1d1b9e8 + 7690c2c commit b0cba39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 2 additions & 4 deletions graphene_django/templates/graphene/graphiql.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@
<script src="https://cdn.jsdelivr.net/npm/whatwg-fetch@2.0.3/fetch.min.js"
integrity="sha384-dcF7KoWRaRpjcNbVPUFgatYgAijf8DqW6NWuqLdfB5Sb4Cdbb8iHX7bHsl9YhpKa"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/react@16.2.0/umd/react.production.min.js"
integrity="sha384-j40ChW3xknV2Dsc9+kP3/6SW2UrR7gYSbx9pmyNU1YTacm/PEj/0bxB9vM8jWFqx"
<script src="https://cdn.jsdelivr.net/npm/react@{{react_version}}/umd/react.production.min.js"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/react-dom@16.2.0/umd/react-dom.production.min.js"
integrity="sha384-P4XM5fEtXj1kXZzsm1EOHZ7HmQIuzyRjjvX4na21R4eRLjmm+oUZua5ALb2PIojw"
<script src="https://cdn.jsdelivr.net/npm/react-dom@{{react_version}}/umd/react-dom.production.min.js"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/graphiql@{{graphiql_version}}/graphiql.min.js"
crossorigin="anonymous"></script>
Expand Down
5 changes: 4 additions & 1 deletion graphene_django/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def instantiate_middleware(middlewares):
class GraphQLView(View):
graphiql_version = "0.13.0"
graphiql_template = "graphene/graphiql.html"
react_version = "16.8.6"

schema = None
graphiql = False
Expand Down Expand Up @@ -126,7 +127,9 @@ def dispatch(self, request, *args, **kwargs):

if show_graphiql:
return self.render_graphiql(
request, graphiql_version=self.graphiql_version
request,
graphiql_version=self.graphiql_version,
react_version=self.react_version,
)

if self.batch:
Expand Down

0 comments on commit b0cba39

Please sign in to comment.