You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Branch: client
According to video, you should use deconstruct for useQuery (const [data, loading, error] = useQuery(ALL_PETS)) but you get undefined on useQuery hook when you do that. If you use something like const pets = useQuery and then pets.loading, pets.data, pets.error it's works.
The text was updated successfully, but these errors were encountered:
Branch: client
According to video, you should use deconstruct for useQuery (const [data, loading, error] = useQuery(ALL_PETS)) but you get undefined on useQuery hook when you do that. If you use something like const pets = useQuery and then pets.loading, pets.data, pets.error it's works.
The text was updated successfully, but these errors were encountered: