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
{{ message }}
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
@tmeasday as you probably saw in the code I ended up adding that function because I couldn't figure out why after updating TS new ApolloError() instanceof ApolloError === false. It's not exported though, so if it should be fixed quickly, I suggest just checking for the graphqlErrors property on the error, and then changing it to isApolloError later.
With apollo-client@0.5.23, it appears that:
(new ApolloError()) instanceof ApolloError // false
This is causing errors to be thrown from here:
https://github.com/apollostack/react-apollo/blob/02fe991c8645c939e5d41587c76c447c7081e02f/src/graphql.tsx#L381
Here's the relevant code which changed recently in apollo-client:
https://github.com/apollostack/apollo-client/blob/master/src/errors/ApolloError.ts#L3
Version
The text was updated successfully, but these errors were encountered: