Skip to content

my loading is forever "True" #9668

@sLurPPPeRsTaR

Description

@sLurPPPeRsTaR

am i the only one here facing this issue ?
here my "dependencies": {
"@apollo/client": "^3.6.2",
"graphql": "^16.4.0",
"react": "17.0.2",
"react-native": "0.68.1"
},

const client = new ApolloClient({
uri: 'https://api.mocki.io/v2/c4d7a195/graphql',
cache: new InMemoryCache(),
});

const GET_ME = gqlquery { users { id email name } };

const {data, loading, error} = useQuery(GET_ME);
console.log({error, loading, data});
if (loading) return Loading...;
if (error) return Error! ${error.message};

RESULT : {error: undefined, loading: true, data: undefined}

please advise. thanks

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions