Skip to content

Commit

Permalink
fix(screens): Fix state used unmounted in thread page
Browse files Browse the repository at this point in the history
  • Loading branch information
realth000 committed Dec 14, 2023
1 parent 937982b commit b38c5ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/screens/thread/thread_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ class _ThreadPageState extends ConsumerState<ThreadPage> {
debug('thread postlist not found');
return <Post>[];
}
if (!mounted) {
return <Post>[];
}
setState(() {
_hasPost = true;
});
Expand Down

0 comments on commit b38c5ae

Please sign in to comment.