When I do this approach, it loads correctly on the first call to SomeWidget(filter: someFilter), but when the view is popped, and then SomeWidget(filter: someOtherFilter) is called again, it says that historyProvider has been disposed before (I assume from when the first activity was popped), and I don't know how to fix it, or how to use the providers properly from here.
I've been reading up on providers and everything I could find regarding this, but still stuck at the moment. Any link / example / hint would be greatly appreciated. Thank you.
I've been trying to implement the suggested filtering method in Issue#31 for a couple of days now, but running into problems.
So I tried to implement this in a widget that passes a new string to the filter in the
useEffect
:When I do this approach, it loads correctly on the first call to SomeWidget(filter: someFilter), but when the view is popped, and then SomeWidget(filter: someOtherFilter) is called again, it says that
historyProvider has been disposed before
(I assume from when the first activity was popped), and I don't know how to fix it, or how to use the providers properly from here.I've been reading up on providers and everything I could find regarding this, but still stuck at the moment. Any link / example / hint would be greatly appreciated. Thank you.