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

feat: is_offline command & handle reload and offline #480

Closed
wants to merge 1 commit into from

Conversation

swarnimarun
Copy link
Contributor

@swarnimarun swarnimarun commented Nov 3, 2023

Fixes #476

@tiero
Copy link
Contributor

tiero commented Nov 3, 2023

Shall we add also a Tauri event so we can attach a listener on JS side instead of polling is offline command?

@swarnimarun
Copy link
Contributor Author

That works as well but the question is when should we emit this event?

@swarnimarun
Copy link
Contributor Author

Should we just emit is_offline if the load of service manifest fails, if we are just emitting once I think is_offline is better.

@Janaka-Steph
Copy link
Contributor

This PR conflicts with Registry PR in setup hook

@tiero
Copy link
Contributor

tiero commented Nov 3, 2023

That works as well but the question is when should we emit this event?

didn't checked the code yet, but I assume we should continuously monitor the state of the internet no? so when state changes (from online to offline or viceversa) we should emit the event

@swarnimarun
Copy link
Contributor Author

closing will redo in a separate PR, rebasing is a lot more annoying than expected.

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.

tauri: App crashes at startup when no internet
3 participants