Comments (2)
The issue happens by calling the formatter
void call(Store<State> store, action, NextDispatcher next) {
next(action);
logger.log(level, formatter(store.state, action, new DateTime.now()));
}
https://github.com/brianegan/redux_logging/blob/master/lib/redux_logging.dart#L123
For me it feels like a Dart2 issue..
A quick fix to make it at least working again would be to write the formatted messaged directly
@override
void call(Store<State> store, action, NextDispatcher next) {
next(action);
logger.log(level, "{Action: $action, State: ${store.state}, ts: ${new DateTime.now()}}");
}
from redux_logging.
@driveddy Published 0.2.0, should be good to go with Dart 2!
from redux_logging.
Related Issues (13)
- Would be nice if the formatter were given old and new state
- State: Instance of 'AppState' HOT 4
- Support redux ^4.0.0 HOT 2
- How to print all action properties? HOT 2
- Make timestamp optional in formatter HOT 1
- For classes I only get Instance of 'NameOfClass' HOT 1
- Upgrade logging package to 1.2.0 HOT 3
- printer() causes Not a Constant Expression exception when using with Flutter, Dart2 preview HOT 3
- Can print actions out of order HOT 1
- type 'List<Object>' is not a subtype of type 'List<(Store<AppState>, dynamic, (dynamic) => void) => void>' HOT 7
- Logging only displays so many lines HOT 2
- usage with built_redux HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redux_logging.