Is there a way to unsubscribe from listening to a Riverpod provider without destroying the object that was originally listening? Or are we supposed to make a separate new object that does not watch the original provider, sub it in, and somehow self-dispose of the original? Is so, how?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/flutterhelp

Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Scout APM - Less time debugging, more time building
  • riverpod

    A simple way to access state while robust and testable.

    Coming soon, there will be a onCancel property too; this will let you set callbacks for when your provider is no longer listened to, but not disposed yet.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts