timhall / svelte-apollo

Svelte integration for Apollo GraphQL
MIT License
947 stars 68 forks source link

0.4.0 silences errors #77

Closed koo5 closed 3 years ago

koo5 commented 3 years ago

when a query ends up with a graphql error, nothing shows up in the console. And there isnt {:catch error} anymore.

koo5 commented 3 years ago

ah:

// Match Apollo's hook approach, by returning a result with three states:
// loading, error, or data (where data could be null / undefined)

export interface Loading {
    loading: true;
    data?: undefined;
    error?: undefined;
}