refactor: update providers to use keepAlive for enhanced state management
- Changed multiple provider annotations to `@Riverpod(keepAlive: true)` to improve state retention and management across the application. - This update aligns with recent enhancements in state management practices, ensuring better performance and user experience throughout the app.
This commit is contained in:
@@ -57,7 +57,7 @@ class OfflineIndicator extends ConsumerWidget {
|
||||
}
|
||||
|
||||
// Tracks if the app was recently offline to enable a one-shot back-online toast
|
||||
@riverpod
|
||||
@Riverpod(keepAlive: true)
|
||||
class _WasOffline extends _$WasOffline {
|
||||
@override
|
||||
bool build() {
|
||||
|
||||
Reference in New Issue
Block a user