refena_sentry 0.1.3 copy "refena_sentry: ^0.1.3" to clipboard
refena_sentry: ^0.1.3 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
160
points
66
downloads
screenshot

Publisher

verified publisherrefena.dev

Weekly Downloads

Adds Sentry integration to the Refena state management library.

Repository (GitHub)
View/report issues

Topics

#refena

Documentation

API reference

License

MIT (license)

Dependencies

refena, sentry

More

Packages that depend on refena_sentry