Skip to content

Not reactive gql query

The gql query (with useQuery) is not reactively updated when its variable are modified, e.g. when going from a guide to another, the ID is not updated in the query object.

This may be due to the fact that the variable field in useQuery is not itself reactive, but only its properties are. Making it a computed before using it in useQuery could solve the issue.