refena_sentry 0.1.1 copy "refena_sentry: ^0.1.1" to clipboard
refena_sentry: ^0.1.1 copied to clipboard

Adds Sentry integration to the Refena state management library.

example/refena_sentry_example.dart

import 'package:refena/refena.dart';
import 'package:refena_sentry/refena_sentry.dart';
import 'package:sentry/sentry.dart';

void main() async {
  await Sentry.init(
    (options) {
      options.dsn = 'https://example@sentry.io/example';
    },
    appRunner: () {
      final container = RefenaContainer(
        observers: [
          RefenaSentryObserver(),
        ],
      );

      container.dispatch(ErrorAction());
    },
  );
}

class ErrorAction extends GlobalAction {
  @override
  void reduce() {
    throw Exception('ErrorAction');
  }
}
0
likes
0
pub points
17%
popularity

Publisher

verified publisherrefena.dev

Adds Sentry integration to the Refena state management library.

Repository (GitHub)
View/report issues

Topics

#refena

License

unknown (license)

Dependencies

refena, sentry

More

Packages that depend on refena_sentry