Skip to content

fix: report pagination reset#557

Merged
1pone merged 2 commits intomainfrom
fix-report-pagination-reset
Dec 6, 2023
Merged

fix: report pagination reset#557
1pone merged 2 commits intomainfrom
fix-report-pagination-reset

Conversation

@1pone
Copy link
Collaborator

@1pone 1pone commented Dec 5, 2023

定义: 状态重置——请求数据,并触发点击第一行事件
问题: 当当前页存在运行中类型的报告时,有轮询逻辑并触发状态重置
期望: 在初始化切换页数时期望发生状态重置,而轮询时不应当发生状态重置

@1pone
Copy link
Collaborator Author

1pone commented Dec 5, 2023

目前的数据请求由usePagination接管,但由于存在多个触发器无法区分(默认请求、分页查询、轮训)
alibaba/hooks#2369

@1pone
Copy link
Collaborator Author

1pone commented Dec 6, 2023

使用useRequest代替usePagination,切换页数主动触发请求,以区分自动轮询

@1pone 1pone merged commit d3d190c into main Dec 6, 2023
@1pone 1pone deleted the fix-report-pagination-reset branch December 6, 2023 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants