File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " graphiql " : patch
3
+ ---
4
+
5
+ export createLocalStorage in UMD bundle
Original file line number Diff line number Diff line change 5
5
* LICENSE file in the root directory of this source tree.
6
6
*/
7
7
import * as GraphiQLReact from '@graphiql/react' ;
8
- import { createGraphiQLFetcher } from '@graphiql/toolkit' ;
8
+ import { createGraphiQLFetcher , createLocalStorage } from '@graphiql/toolkit' ;
9
9
import * as GraphQL from 'graphql' ;
10
10
import { GraphiQL } from './components/GraphiQL' ;
11
11
@@ -25,6 +25,12 @@ import './style.css';
25
25
// @ts -expect-error
26
26
GraphiQL . createFetcher = createGraphiQLFetcher ;
27
27
28
+ /**
29
+ * This function is needed in order to easily generate a custom storage namespace
30
+ */
31
+ // @ts -expect-error
32
+ GraphiQL . createLocalStorage = createLocalStorage ;
33
+
28
34
/**
29
35
* We also add the complete `graphiql-js` exports so that this instance of
30
36
* `graphiql-js` can be reused from plugin CDN bundles.
You can’t perform that action at this time.
0 commit comments