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

[runtime] Change NetworkMonitor to expose a StateFlow directly #6119

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

martinbonnin
Copy link
Contributor

Closes #6115

The previous interface was based on what ApolloClient needs but it prevented using NetworkMonitor for other use cases. This PR allows to use NetworkMonitor in a more generic way.

This is obviously 200% breaking. If anyone implements their own NetworkMonitor, they'll need to update but hopefully it's not too hard (and the symbol is @ApolloExperimental in all cases).

@martinbonnin martinbonnin requested review from a team and BoD as code owners August 13, 2024 14:07
Copy link

netlify bot commented Aug 13, 2024

Deploy Preview for apollo-android-docs ready!

Name Link
🔨 Latest commit 60c9228
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/66bb68bace1cd800082f050f
😎 Deploy Preview https://deploy-preview-6119--apollo-android-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@BoD BoD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@martinbonnin martinbonnin merged commit 19fc22b into main Aug 14, 2024
9 checks passed
@martinbonnin martinbonnin deleted the network-monitor branch August 14, 2024 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using NetworkMonitor to monitor offline state
2 participants