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

Clarify the use of useFuture #408

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

kwill39
Copy link
Contributor

@kwill39 kwill39 commented Jan 4, 2024

Describe what scenario you think is uncovered by the existing examples/articles
Document that Futures should not be created inside useFuture (see #132 & #119)

Describe why existing examples/articles do not cover this case
useFuture behaves like FutureBuilder. This is not explicitly stated but rather implied through an understanding of Flutter Hooks. This understanding may not be intuitive for new users and can lead to a misunderstanding about the behavior of useFuture.

@kwill39 kwill39 marked this pull request as ready for review January 4, 2024 18:33
@rrousselGit rrousselGit merged commit e35a92a into rrousselGit:master Jan 4, 2024
@rrousselGit
Copy link
Owner

Thanks!

@kwill39 kwill39 deleted the use-future-docs branch January 4, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants