rrousselGit / flutter_hooks

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

Closed Region40 closed 6 months ago

Region40 commented 6 months ago

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.

Region40 commented 6 months ago

See #408