Skip to content

Commit b7d6ff5

Browse files
Gengarclaude
andcommitted
Fix RA sync not triggering after onboarding due to mounted check
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 10c06b5 commit b7d6ff5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/features/onboarding/onboarding_screen.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,9 @@ class _OnboardingScreenState extends ConsumerState<OnboardingScreen> {
473473

474474
// Trigger RA sync after onboarding if RA was configured.
475475
// Deferred to let HomeView settle and avoid contention with config bootstrap.
476+
// Note: no mounted check — syncNotifier and storage are captured above,
477+
// and this callback doesn't access context or ref.
476478
Future.delayed(const Duration(seconds: 3), () {
477-
if (!mounted) return;
478479
triggerRaSync(syncNotifier, storage);
479480
});
480481
}

0 commit comments

Comments
 (0)