mangayomi-mirror/lib
NBA2K1 33152fc035 Fix ProviderDisposedException
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Cannot use the Ref of totalChapterCacheSizeStateProvider after it has been disposed. This typically happens if:
- A provider rebuilt, but the previous "build" was still pending and is still performing operations.
  You should therefore either use `ref.onDispose` to cancel pending work, or
  check `ref.mounted` after async gaps or anything that could invalidate the provider.
- You tried to use Ref inside `onDispose` or other life-cycles.
  This is not supported, as the provider is already being disposed.

#0      Ref._throwIfInvalidUsage (package:riverpod/src/core/ref.dart:220:7)
ref.dart:220
#1      AnyNotifier.state= (package:riverpod/src/core/provider/notifier_provider.dart:91:9)
notifier_provider.dart:91
#2      TotalChapterCacheSizeState.build.<anonymous closure> (package:mangayomi/modules/more/data_and_storage/providers/storage_usage.dart:17:42)
storage_usage.dart:17
#3      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:948:45)
future_impl.dart:948
#4      Future._propagateToListeners (dart:async/future_impl.dart:977:13)
future_impl.dart:977
#5      Future._completeWithValue (dart:async/future_impl.dart:720:5)
future_impl.dart:720
<asynchronous suspension>
2025-11-29 01:31:22 +01:00
..
eval chore: update dependencies 2025-11-28 14:31:39 +01:00
ffi dart format 2025-05-30 17:43:42 +01:00
l10n Add Japanese localization and code refactor 2025-11-08 21:40:19 +01:00
models chore: update dependencies 2025-11-28 14:31:39 +01:00
modules Fix ProviderDisposedException 2025-11-29 01:31:22 +01:00
providers fix: update directory handling for macOS 2025-11-12 11:45:27 +01:00
router Refactor and update dependencies for Isar and Riverpod 2025-10-29 13:08:42 +01:00
services stopCfResolutionWebviewServer() 2025-11-29 00:18:13 +01:00
src/rust Refactor and update dependencies for Isar and Riverpod 2025-10-29 13:08:42 +01:00
utils Initialize rpcShowReadingWatchingProgress to false 2025-11-08 23:57:32 +01:00
main.dart Fix ProviderDisposedException 2025-11-29 01:31:22 +01:00