refactor: update folders provider to use keepAlive for improved state management

- Changed the folders provider annotation to `@Riverpod(keepAlive: true)` to enhance state retention.
- This update aligns with recent improvements in state management across the application, ensuring better performance and user experience.
This commit is contained in:
cogwheel0
2025-10-01 18:08:03 +05:30
parent 7552031751
commit 28dc16a6e3

View File

@@ -1564,7 +1564,7 @@ final webSearchAvailableProvider = Provider<bool>((ref) {
});
// Folders provider
@riverpod
@Riverpod(keepAlive: true)
Future<List<Folder>> folders(Ref ref) async {
// Protected: require authentication
if (!ref.read(isAuthenticatedProvider2)) {