DTStack / DTStack/dt-react-component
[Feature Request]: 修改useList请求参数merge行为
Open
- Dominant language
- TypeScript
- Stars
- 106
- Forks
- 42
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 1
Description
### 功能
其他
### 详细描述
`useList`使用 `lodash merge` 来实现参数的修改, 导致新参数为 undefined、数组等数据类型时,必须使用`mutate((prev => ({...pvev, xxx: 123})))`,并且数组项是逐个合并的,如原来为[1, 2, 3],新值为[4, 5],最终结果为[4, 5, 3],这不符合使用场景
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the useList entry point and trace how lodash merge handles parameters passed through mutate. Check for existing tests covering parameter updates. Done means undefined values and arrays follow the requested replacement behavior, including replacing [1, 2, 3] with [4, 5] rather than retaining the third item.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100