@@ -96,19 +96,19 @@ React hooks.
96
96
The ` useGraphiQLActions ` hook ** exposes all actions** across store slices.
97
97
The ` useGraphiQL ` hook ** provides access to the following store slices** :
98
98
99
- | Store Slice | Responsibilities |
100
- | ----------- | --------------------------------------------------------------------------------------------------------- |
101
- | ` storage ` | Provides a storage API that can be used to persist state in the browser (by default using ` localStorage ` ) |
102
- | ` editor ` | Manages ** query** , ** variables** , ** headers** , and ** response** editors and tabs |
103
- | ` execution ` | Handles the execution of GraphQL requests |
104
- | ` plugin ` | Manages plugins and the currently active plugin |
105
- | ` schema ` | Fetches, validates, and stores the GraphQL schema |
106
- | ` theme ` | Manages the current theme and provides a method to update it |
99
+ | Store Slice | Responsibilities |
100
+ | ---------------------------------------- | --------------------------------------------------------------------------------------------------------- |
101
+ | [ ` storage ` ] ( ./src/stores/storage.ts ) | Provides a storage API that can be used to persist state in the browser (by default using ` localStorage ` ) |
102
+ | [ ` editor ` ] ( ./src/stores/editor.ts ) | Manages ** query** , ** variables** , ** headers** , and ** response** editors and tabs |
103
+ | [ ` execution ` ] ( ./src/stores/execution.ts ) | Handles the execution of GraphQL requests |
104
+ | [ ` plugin ` ] ( ./src/stores/plugin.ts ) | Manages plugins and the currently active plugin |
105
+ | [ ` schema ` ] ( ./src/stores/schema.ts ) | Fetches, validates, and stores the GraphQL schema |
106
+ | [ ` theme ` ] ( ./src/stores/theme.ts ) | Manages the current theme and provides a method to update it |
107
107
108
108
### Usage Example
109
109
110
110
``` js
111
- import { useGraphiQL , useGraphiQLActions , useTheme } from ' @graphiql/react' ;
111
+ import { useGraphiQL , useGraphiQLActions } from ' @graphiql/react' ;
112
112
113
113
// Get an action to fetch the schema and an action to change theme
114
114
const { introspect , setTheme } = useGraphiQLActions ();
0 commit comments