Skip to content

[Bug]: usePagination分页策略,[指定分页数据]使用问题 #810

@pawover

Description

@pawover

这是否是一个 Bug?

  • 我已经确认我要报告的是一个 Bug

这个问题是否已经存在?

  • 我已经确认这个 Issue 没有被报告过

Alova 版本

3.5.1

前端框架

React

问题描述

Image

文档中提供了使用方法,但是当数据字段不在第一层级的时候,使用remove方法删除一项会报错

Image Image

使用可选访问符可以抑制报错 data: (response) => response.data?.records,,但是不符合TS类型推断,因为 records 在 response 中是明确存在的

期望的表现

无报错

复现链接

No response

复现步骤

使用复杂的接口层级结构,指定分页数据,使用remove方法删除其中一项

系统信息

补充说明

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions