Skip to content

Commit

Permalink
fix: cart provider is always alive
Browse files Browse the repository at this point in the history
  • Loading branch information
aliwaseem27 committed Sep 18, 2024
1 parent 5a35d2a commit ada2bb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/providers/carts_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ CartsRepository cartsRepository(CartsRepositoryRef ref) {
return CartsRepository(networkService: networkService);
}

@riverpod
@Riverpod(keepAlive: true)
class Carts extends _$Carts {
@override
Cart build() {
Expand Down
6 changes: 3 additions & 3 deletions lib/providers/carts_provider.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ada2bb4

Please sign in to comment.