Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple invalidation of Providers #3571

Open
MichaelLucca opened this issue May 22, 2024 · 1 comment
Open

Multiple invalidation of Providers #3571

MichaelLucca opened this issue May 22, 2024 · 1 comment
Assignees
Labels
bug Something isn't working needs triage

Comments

@MichaelLucca
Copy link

Describe the bug
The bug concerns the invalidation of multiple providers, which leads to incorrect state management and unexpected behaviors in the application. When attempting to invalidate multiple providers, only the last one is invalidated correctly.

To Reproduce

  1. Create a screen with two Widgets, each depending on a different provider.
  2. Call the invalidate method for both providers.
  3. Observe that only the last provider, affiliatedRestaurantsProvider, is triggered for invalidation.

Here is an example:
image

Expected behavior
All the providers must be invalidated and rebuilded.

@myxzlpltk
Copy link

Can you show us how you defined your riverpod?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

3 participants