storeLoggerModule<S> function

Module<S> storeLoggerModule<S>(
  1. String tag
)

Implementation

Module<S> storeLoggerModule<S>(String tag) => Module<S>('storeLoggerModule', (dispatcher, initialize, state, next) {
  return (dynamic action) async {
    if(kDebugMode) print('[meowchannel/$tag] ${state.valueOrNull()?.state} <- $action');
    return next(action);
  };
});