Closed chimon2000 closed 4 years ago
You could expose the state, fetchMore and refetch on another StateNotifier and use LocatorMixin in QueryController to handle changes on state
@smiLLe wouldn't that have the same issue of not updating when they are passed into the provider?
You don't pass them into the constructer but watch their values through the LocatorMixin in your QueryController
As stated by smiLLe, use LocatorMixin's update method to modify the StateNotifier instead of re-creating it.
I am currently trying to rebuild my StateNotifierProvider based on some external values, but cannot find a way to achieve this. Basically I have something like the following:
The state from the builder method should trigger a new state for QueryController but it isn't.