hooks
hooks copied to clipboard
【建议】useRequset run 函数,不要限制入参
const { run, tableProps } = useRequest(service, {
paginated: true
})
// 此处强制必须输入current/pageSize,实际此处已经被tableProps接管。
run({
filters:{ status: 200}
})
Yep makes zero sense to require this parameters.