goatslacker / goatslacker/alt

dispatchIdentity rudely omit all params when the first one is undefined.

Open
#716 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.