Skip to content

Commit

Permalink
replace ref.watch by ref.read outside build method
Browse files Browse the repository at this point in the history
  • Loading branch information
julien4215 committed Dec 7, 2023
1 parent 2f8ced5 commit b9f2452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/model/game/game_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ class GameController extends _$GameController {
_lastMoveTime = null;

ref
.watch(chatControllerProvider.notifier)
.read(chatControllerProvider.notifier)
.setMessages(fullEvent.game.messages);

state = AsyncValue.data(
Expand Down

0 comments on commit b9f2452

Please sign in to comment.