Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect possible optimization when chaining await ref.watch #3939

Open
rrousselGit opened this issue Jan 18, 2025 · 0 comments
Open

Detect possible optimization when chaining await ref.watch #3939

rrousselGit opened this issue Jan 18, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request linter

Comments

@rrousselGit
Copy link
Owner

One way applications can become slow is by executing code sequentially when it could be parallelized.

The l'inter could detect possible optimization when using Ref.watch and suggest a more efficient code.

Bad:

final  a=await ref.watch(a.future)
final b =await ref.watch(a.future)
@rrousselGit rrousselGit added enhancement New feature or request linter labels Jan 18, 2025
@rrousselGit rrousselGit self-assigned this Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request linter
Projects
None yet
Development

No branches or pull requests

1 participant