Watch
1
0
Fork
You've already forked nexus
0
forked from Nexus/nexus

general cleanups and mounted guards

This commit is contained in:
Henry Hiles 2026-10-24 12:02:23 -04:00
commit 0a09a4ee0a
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -60,6 +60,8 @@ class const SelectServerPage({super.key}) extends HookConsumerWidget {
return;
}
if (!context.mounted) return;
await ref.read(LaunchHelper.provider).launchUrl(codeResponse.url);
AppLinks().uriLinkStream.listen((encodedUri) async {
@ -70,7 +72,7 @@ class const SelectServerPage({super.key}) extends HookConsumerWidget {
try {
final code = encodedUri.queryParameters["code"];
if (code != null) {
if (code != null && context.mounted) {
await ref
.read(ClientController.provider.notifier)
.exchangeToken(