Skip to content

Commit

Permalink
fix: Call super.onLoad from FlameBlockReader (#3175)
Browse files Browse the repository at this point in the history
Since you can't chain the mixin if it doesn't call `super.onLoad`, that
call was added.
Closes #3164
  • Loading branch information
spydon authored May 27, 2024
1 parent b9738d5 commit 349f7bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/flame_bloc/lib/src/flame_bloc_reader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ mixin FlameBlocReader<B extends BlocBase<S>, S> on Component {
@override
@mustCallSuper
Future<void> onLoad() async {
super.onLoad();
final providers = ancestors().whereType<FlameBlocProvider<B, S>>();
assert(
providers.isNotEmpty,
Expand Down

0 comments on commit 349f7bd

Please sign in to comment.