Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(hooks): prevent program freezing when pagesize returns 0 #545

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

Azir-11
Copy link
Member

@Azir-11 Azir-11 commented Jul 15, 2024

防止接口的分页大小返回0的时候页面卡死,考虑到部分系统无返回该内容、没有使用组件库的分页器或是有对应的ORM做了这个限制,所以就不放到useTableHook里了,在transformer里做一个简单的拦截+提示就行,避免这个size变为“魔法值”

@honghuangdc honghuangdc merged commit 07ce7aa into soybeanjs:v1.3 Jul 15, 2024
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.

2 participants