I have an application with two screens, one of them is my home screen which I have an icon that when is pressed I will post the item to firebase, the other one is my favorite screen which I can see my favorite items, the problem is that I post the data from home screen and get the data from firebase in favorite screen and assign it to my riverpod through initState() correctly but when I come back from favorite screen and I call my riverpod , the riverpod is empty though I have assigned the data in my favorite screen to it.(I am using go_router for navigation)your text
Ehsan Javdan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.