React hooks for Flutter. Hooks are a new kind of object that manages a Widget life-cycles. They are used to increase code sharing between widgets and as a complete replacement for StatefulWidget.
MIT License
3.06k
stars
175
forks
source link
Clarify usage of useFuture through documentation #407
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 caseuseFuture 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.
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 likeFutureBuilder
. 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 ofuseFuture
.