Skip to content

Conversation

@michalurbanek
Copy link
Collaborator

@michalurbanek michalurbanek commented Jan 15, 2026

Changed updateShouldNotify to return true for cases when user navigates back to the screen and emits the same event. Riverpod starting with version 3.0 compares previous and next events using equal.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug in the EventNotifier class where Riverpod 3.0's equality-based update filtering was preventing listeners from being notified when the same event was emitted multiple times, particularly affecting navigation scenarios.

Changes:

  • Overridden updateShouldNotify in EventNotifier to always return true, ensuring all event emissions trigger listener notifications regardless of equality
  • Removed completed TODO item from README.md

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
lib/core/riverpod/event_notifier.dart Added updateShouldNotify override to force notification on all event emissions
README.md Removed completed TODO items, including the one addressing this EventNotifier fix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@michalurbanek michalurbanek merged commit 596bb64 into master Jan 16, 2026
1 check passed
@michalurbanek michalurbanek deleted the mu/fix/event_notifier branch January 16, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants