MCPcopy
hub / github.com/skevy/graphiql-app / constructor

Function constructor

app/components/App.js:17–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16export default class App extends React.Component {
17 constructor() {
18 super();
19
20 const storage = window.localStorage;
21
22 this.state = {
23 headerEditOpen: false,
24 currentTabIndex: storage.getItem('currentTabIndex') ? parseInt(storage.getItem('currentTabIndex')) : 0,
25 tabs: storage.getItem('tabs') ? JSON.parse(storage.getItem('tabs')) : [
26 {
27 name: null,
28 headers: {},
29 endpoint: '',
30 method: 'post'
31 }
32 ]
33 };
34 }
35
36 componentDidMount() {
37 Mousetrap.bindGlobal('command+shift+]', (e) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected