Open vdvpie22 opened 4 years ago
class HomePage extends Page<HomeState, Map<String, dynamic>> {
HomePage()
: super(
initState: initState,
effect: buildEffect(),
reducer: buildReducer(),
view: buildView,
dependencies: Dependencies<HomeState>(
adapter: null,
slots: <String, Dependent<HomeState>>{
'messages_button':
MessagesButtonConnector() + MessagesComponent()
}),
middleware: <Middleware<HomeState>>[],
//
shouldUpdate: (HomeState oldState, HomeState newState) {
// Add your own rules to define when will rebuild the view.
return true;
}
);
}
I have the page with component on it. When I change local state of component, page will reloaded. Can I change local state of component without page reloading?
Component:
Component state:
Component Actions:
Component Effect:
Component Reduser:
Component View:
Connector:
Page:
Page State: