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 · 2 comments
Open

Multiple invalidation of Providers #3571

MichaelLucca opened this issue May 22, 2024 · 2 comments
Assignees
Labels
bug Something isn't working question Further information is requested

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?

@rrousselGit rrousselGit added question Further information is requested and removed needs triage labels Jul 8, 2024
@rrousselGit
Copy link
Owner

A complete example is necessary to reproduce this.
As it is, I am capable of invalidating multiple providers at once. So there's likely something more to what you're saying here.

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

No branches or pull requests

3 participants