dispatchIdentity rudely omit all params when the first one is undefined.
Open
- Dominant language
- JavaScript
- Stars
- 3.4k
- Forks
- 312
- PR merge metrics
- No merged PRs in 30d
Description
I just fall in the hole these days.
https://github.com/goatslacker/alt/blob/master/src/utils/AltUtils.js#L54-L57
```javascript
export function dispatchIdentity(x, ...a) {
if (x === undefined) return null
return a.length ? [x].concat(a) : x
}
```
Contributor guide
Research direction
Start with src/utils/AltUtils.js around lines 54-57 and inspect how dispatchIdentity is called elsewhere. Reproduce the undefined-first-argument case, then check nearby tests or call sites for the intended handling of the remaining parameters. Done means the reported parameter-loss behavior is covered and no longer occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100