baidu / baidu/amis

【CRUD】关于 crud 的 「initFetch」设置为 false 后,curd -「api-sendOn」 属性满足条件也不触发请求

Open
#7,617 2 comments 0 reactions 0 assignees View on GitHub
confirmed
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

{
"type": "crud",
"data": {
"sendCondition": true
},
"api": {
"url": "/amis/api/mock2/sample",
"sendOn": "${sendCondition}"
},
"syncLocation": false,
"columns": [
{
"name": "id",
"label": "ID",
"id": "u:40ae5377a327"
}
],
"id": "u:3e026cac52b2",
"perPageAvailable": [
10
],
"messages": {
},
"initFetch": false
}

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with the provided CRUD JSON configuration, keeping initFetch false and api.sendOn set to ${sendCondition}. Start by tracing CRUD request handling for these two settings, then verify that a true sendCondition triggers the expected request without the initial fetch; the behavior should be covered by a regression test if the project has a relevant test entry point.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.