Skip to content

Commit

Permalink
fix(thread): fix still loading incorrect page number when redirect from
Browse files Browse the repository at this point in the history
notice
  • Loading branch information
realth000 committed Sep 27, 2024
1 parent a5ae204 commit aaeb41c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/features/thread/widgets/post_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,11 @@ class _PostListState extends State<PostList> with LoggerMixin {
_refreshController.finishLoad();
return;
}
context
.read<ThreadBloc>()
.add(ThreadLoadMoreRequested(widget.pageNumber + 1));
context.read<ThreadBloc>().add(
ThreadLoadMoreRequested(
context.read<JumpPageCubit>().state.currentPage + 1,
),
);
},
childBuilder: (context, physics) {
return CustomScrollView(
Expand Down

0 comments on commit aaeb41c

Please sign in to comment.