-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: obsQuery.resubscribeAfterError is not a function #11632
Comments
Hi there :) This is quite a lot, so I'm trying to separate a few things here.
|
@naveenkrish-17 I had the same issue. Updating apollo-client to latest version fixed it for me. |
We didn't see a response from the original author in a long time and as per report it seems to work in newer versions, so I'm going to close this issue. If this still happens in new versions, pleas open a new issue. |
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
We are facing a unique issue in our single page application. Our application is SSR. At home page we are firing 4 GraphQL queries. The results are getting cached when checked in Apollo dev tools. When we navigate to next page we fire two queries. We are redirecting to external application from this page as per functional requirement to an application out of our control. When we navigate back to our application using browser back button another load of our application is happening which is fair and we see two GraphQL queries as needed. But when checked in Cache from Apollo dev tools, one of the result from GraphQL is getting deleted. This deleted result is needed in the home page which we can reach by clicking browser back button again. Weirdly when we reach the home page or initial page of the application, the useQuery is getting fired bu resulting in below error and we end up getting loading as true and thats it.
Uncaught TypeError: obsQuery.resubscribeAfterError is not a function
at Object.onError [as error] (useQuery.ts:247:1)
at notifySubscription (module.js:137:1)
at onNotify (module.js:176:1)
at SubscriptionObserver.error (module.js:229:1)
at iteration.ts:13:1
at Array.forEach ()
at iterateObserversSafely (iteration.ts:13:1)
at ObservableQuery.reportError (ObservableQuery.ts:907:1)
at Object.error (ObservableQuery.ts:844:1)
at iteration.ts:13:1
All GraphQL calls are using the same resolver for Apollo Client and input params look the same between successful request occured in forward journey and the failed request during backward journey
Kindly help
The text was updated successfully, but these errors were encountered: