diff --git a/README.md b/README.md index 78b51ab..32d7b6f 100644 --- a/README.md +++ b/README.md @@ -562,16 +562,7 @@ For the purpose of Fraud prevention, user safety, and compliance the dedicated A # Todos -- Investigate Github action caching -- Fix crashlytics upload mapping symbols in Github actions -- Implements secret handling - - API keys - - Keystores for Android - - Service accounts - - Google service json - - iOS Xcode properties with .env files - Fix Riverpod async gaps - analytics manager (keep live) -- Fix EventNotifier - change updateShouldNotify to return true (in case user returns back to the screen and emits the same value) - Revisit Google and Apple logins - Providers, Cancellation exception, separating Credentials from Sign In. USe Firebase directly for Apple on Android. - Refactor Sealed classes - private classes, use generated `when` function instead of switch. diff --git a/lib/core/riverpod/event_notifier.dart b/lib/core/riverpod/event_notifier.dart index 86daa6d..d3ad3ab 100644 --- a/lib/core/riverpod/event_notifier.dart +++ b/lib/core/riverpod/event_notifier.dart @@ -15,4 +15,11 @@ class EventNotifier extends Notifier { T? build() { return state; } + + /// Always returns true to ensure listeners are notified even when the same event is emitted multiple times. + /// Addresses navigation scenarios where the same event needs to be processed multiple times (e.g. when navigating back and forth). + @override + bool updateShouldNotify(T? previous, T? next) { + return true; + } }