Skip to content

Commit

Permalink
fix: feed refresh loop (#704)
Browse files Browse the repository at this point in the history
## Description
<!-- Briefly explain the purpose of this PR and what it accomplishes.
-->

## Additional Notes
<!-- Add any extra context or relevant information here. -->

## Type of Change
- [x] Bug fix
- [ ] New feature
- [ ] Breaking change
- [ ] Refactoring
- [ ] Documentation
- [ ] Chore

## Screenshots (if applicable)
<!-- Include screenshots to demonstrate any UI changes. -->
<!-- <img width="180" alt="image" src="image_url_here"> -->
  • Loading branch information
ice-ajax authored Feb 13, 2025
1 parent b0afd10 commit 80a1031
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions lib/app/features/feed/providers/can_reply_notifier.c.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ class CanReply extends _$CanReply {

@override
Future<bool> build(EventReference eventReference) async {
ref.onDispose(() {
ref
..invalidate(followListProvider(eventReference.pubkey, cache: false))
..invalidate(
ionConnectEntityProvider(eventReference: eventReference, cache: false),
);
});

final currentPubkey = ref.watch(currentPubkeySelectorProvider).value;
if (currentPubkey == null) {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Future<FollowListEntity?> currentUserFollowList(Ref ref) async {
return null;
}
ref.onDispose(() => ref.invalidate(followListProvider(currentPubkey, cache: false)));
return ref.watch(followListProvider(currentPubkey).future);
return ref.watch(followListProvider(currentPubkey, cache: false).future);
}

@riverpod
Expand Down

0 comments on commit 80a1031

Please sign in to comment.