MCPcopy Create free account
hub / github.com/OneGraph/graphiql-explorer / render

Method render

src/Explorer.js:517–538  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

515 };
516
517 render() {
518 const {arg, parentField} = this.props;
519 const argSelection = this._getArgSelection();
520
521 return (
522 <AbstractArgView
523 argValue={argSelection ? argSelection.value : null}
524 arg={arg}
525 parentField={parentField}
526 addArg={this._addArg}
527 removeArg={this._removeArg}
528 setArgFields={this._modifyChildFields}
529 setArgValue={this._setArgValue}
530 getDefaultScalarArgValue={this.props.getDefaultScalarArgValue}
531 makeDefaultArg={this.props.makeDefaultArg}
532 onRunOperation={this.props.onRunOperation}
533 styleConfig={this.props.styleConfig}
534 onCommit={this.props.onCommit}
535 definition={this.props.definition}
536 />
537 );
538 }
539}
540
541type ArgViewProps = {|

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected