when visiting the current account page, closing and reopening i got this error:
E/flutter (13773): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Bad state: Using "ref" when a widget is about to or has been unmounted is unsafe.
E/flutter (13773): Ref relies on BuildContext, and BuildContext is unsafe to use when the widget is deactivated.
E/flutter (13773): To safely refer to the state of providers inside State.dispose(), save the provider state in a field of your State class.
vscode showed this error next to line 38 of current_account.dart:
await ref.read(profileProvider.future);
this error caused the app to crash
when visiting the current account page, closing and reopening i got this error:
vscode showed this error next to line 38 of
current_account.dart:await ref.read(profileProvider.future);this error caused the app to crash