Skip to content

Programmatically changing query in v5 #4056

Discussion options

You must be logged in to vote

you can change editor value with

const queryEditor = useGraphiQL(state => state.queryEditor)

useEffect(() => {
  queryEditor.setValue(query)
}, [query])

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jstaro
Comment options

@dimaMachina
Comment options

Answer selected by jstaro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants