【发布时间】:2021-03-19 23:25:06
【问题描述】:
My Resource -:
<Resource name="ReliabilityEventLog" list={ListGuesser} />
This is my response from the server_:
{
"data": {
"items": [{
"createdAt": "2020-12-04T04:24:00.118Z",
"deletedAt": null,
"eventName": "Confirmed Withdraw* between 5 and 24 hrs",
"eventDate": "2020-12-04T00:00:00.000Z",
"eventPoint": -20,
"shiftId": 44332,
"facilityName": "Tester Facility Friendswood",
"facilityId": 927,
"id": 4,
"nurseId": 12508,
]}}
ListGuesser 呈现“未找到结果”并且数据是从网络选项卡返回的。
对这种行为或如何解决它有任何解释吗?如有任何帮助,我们将不胜感激。
【问题讨论】:
-
请说明您的问题。
-
我正在尝试使用 ListGuesser 显示列表,列表猜测器呈现“未找到结果”,而后端发回了数据响应。你知道问题是什么吗?
-
您能发布您的
dataProvider吗?这可能是您通过 react-admin 状态传递响应的方式。
标签: reactjs graphql apollo-client react-admin