Skip to content
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

subscribeToMore restart on connection error #12226

Closed
ssmilin opened this issue Dec 16, 2024 · 2 comments
Closed

subscribeToMore restart on connection error #12226

ssmilin opened this issue Dec 16, 2024 · 2 comments
Labels
🏓 awaiting-contributor-response requires input from a contributor

Comments

@ssmilin
Copy link

ssmilin commented Dec 16, 2024

useSubscription has the functionality to restart on error. Is there a way we can achieve the same functionality in subscribeToMore?"

@phryneas
Copy link
Member

Hi @ssmilin!

useSubscription doesn't have any functionality to automatically restart on error - just a restart function.

In the case of subscribeToMore that's not really necessary, because you can just call subscribeToMore again.

Any kind of reconnecting would usually happen inside the upstream library graphql-ws, which has options for that.

@phryneas phryneas added the 🏓 awaiting-contributor-response requires input from a contributor label Dec 17, 2024
Copy link
Contributor

github-actions bot commented Jan 9, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏓 awaiting-contributor-response requires input from a contributor
Projects
None yet
Development

No branches or pull requests

3 participants