Skip to content

Commit 7bbbfe8

Browse files
committed
remove print statements and dispatch getter on store
1 parent 245b566 commit 7bbbfe8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: lib/src/store.dart

+1-5
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,11 @@ class Store<State extends BuiltReducer, Actions extends ReduxActions> {
3232

3333
// setup the middleware dispatch chain
3434
ActionHandler handler = (action) {
35-
print("action ${action.name}");
3635
var state = _state.rebuild((b) => _state.reduce(b, action));
3736

3837
// if the hashcode did not change bail
3938
if (identical(_state, state)) return;
40-
print(state);
39+
4140
// update the internal state and publish the change
4241
_state = state;
4342
_stateController.add(_state);
@@ -61,7 +60,4 @@ class Store<State extends BuiltReducer, Actions extends ReduxActions> {
6160

6261
/// [actions] returns the synced actions
6362
Actions get actions => _actions;
64-
65-
/// [dispatch] dispatches a new actione
66-
dispatch(Action a) => _dispatch.add(a);
6763
}

0 commit comments

Comments
 (0)