MichaelMarner / dart-redux-remote-devtools

Remote Devtools for Dart & Flutter
https://pub.dartlang.org/packages/redux_remote_devtools
MIT License
53 stars 10 forks source link

Catch exception if state could not be encoded #5

Closed MichaelMarner closed 5 years ago

MichaelMarner commented 6 years ago

If the state object is not jsonEncodable the cause an exception to be thrown. Catch this exception and just don't send the state with the payload.