Skip to content

Commit

Permalink
refactor: autoDisposeを付与
Browse files Browse the repository at this point in the history
  • Loading branch information
okaryo committed Sep 12, 2023
1 parent 56bc595 commit 4b05fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/provider/tic_tac_toe_provider.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:tic_tac_toe_handson/model/tic_tac_toe.dart';

final ticTacToeProvider = StateNotifierProvider<TicTacToeProvider, TicTacToe>((ref) {
final ticTacToeProvider = StateNotifierProvider.autoDispose<TicTacToeProvider, TicTacToe>((ref) {
return TicTacToeProvider();
});

Expand Down

0 comments on commit 4b05fd0

Please sign in to comment.