Open yoshiakis opened 5 years ago
Now that I looked into the ExecuteButton component of GraphiQL, I understand why this event handler exists. So I change my question. What is the following code for?
if (firstTime) {
this.onOptionSelected(
this.props.operations.find(
op => op.name.value === upEvent.target.textContent,
) || this.props.operations[0],
)
firstTime = false
}
This issue pertains to the following package(s):
@timsuchanek Hey! I'm thinking refactoring GraphQL Playground. I looked into
/graphql-playground-react/src/components/Playground/ExecuteButton.tsx
and I have no idea why the following code is needed. Could I remove this code for refactoring?