Open itsjzt opened 5 years ago
we need to add snippets for hooks.
based on the current convention of snippets new snippets can be named as: uq for useQuery(QUERY_NAME) uqf for useQuery(QUERY_NAME, { variables: {} })
uq
useQuery(QUERY_NAME)
uqf
useQuery(QUERY_NAME, { variables: {} })
um for useMutation(MUTATION_NAME, { variables: {} }) umf for useMutation(MUTATION_NAME, { variables: {}, refetchQueries: [] })
um
useMutation(MUTATION_NAME, { variables: {} })
umf
useMutation(MUTATION_NAME, { variables: {}, refetchQueries: [] })
and same as above for subscription and useClient
I would like to contibute on this when we decide the snippet's keywords 💯
we need to add snippets for hooks.
based on the current convention of snippets new snippets can be named as:
uq
foruseQuery(QUERY_NAME)
uqf
foruseQuery(QUERY_NAME, { variables: {} })
um
foruseMutation(MUTATION_NAME, { variables: {} })
umf
foruseMutation(MUTATION_NAME, { variables: {}, refetchQueries: [] })
and same as above for subscription and useClient