fix: eliminate pull-to-refresh flicker by holding stale data during re-fetch
This commit is contained in:
@@ -30,7 +30,7 @@ class _ChatScreenState extends ConsumerState<ChatScreen>
|
||||
@override
|
||||
void didChangeAppLifecycleState(AppLifecycleState state) {
|
||||
if (state == AppLifecycleState.resumed) {
|
||||
ref.invalidate(messagesProvider(widget.conversationId));
|
||||
ref.read(messagesProvider(widget.conversationId).notifier).refresh();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user