Passing 'undefined' to 'doAction' should throw error
Open
- Dominant language
- JavaScript
- Stars
- 101
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
I propose that `flux.doAction(undefined)` should throw an error. This gives the developer a faster debugging feedback cycle by getting an error immediately whenever an invalid value is passed as an action name. Thoughts?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the doAction entry point in fluxify and inspect how action names are currently handled. Confirm the expected behavior for an undefined action value, then run the existing test suite to verify that the error is raised without changing valid action handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100