Async function into useEffect hook analysis option
Open
Nobody has claimed this yet.
area-analyzer-plugin
Type: new feature
- Dominant language
- Dart
- Stars
- 432
- Forks
- 57
- PR merge metrics
- No merged PRs in 30d
Description
- Issue Type: FEATURE REQUEST
over_reactVersion(s):x.x.x
This snippet will not work as intended
useEffect(() async {
// await something();
});
Adding an analysis hint for this would help developers unfamiliar with the edge cases of useEffect would be helpful
FYI: @greglittlefield-wf @aaronlademann-wf @kealjones-wk @evanweible-wf @maxwellpeterson-wf
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the useEffect API and the project's analysis configuration; the issue names no file or test. Use the supplied async callback snippet as the reproduction, and consider the work done when it produces a helpful analysis hint for this pattern.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100