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.13k stars 179 forks source link

[Feature Request] Is it possible to implement `useSWR` in flutter_hooks #425

Closed Cierra-Runis closed 6 months ago

Cierra-Runis commented 6 months ago

There's a useful and powerful hook at React, it names useSWR, link here.

rrousselGit commented 6 months ago

This isn't an official React hook, but a third-party one.
As such I'd prefer not having it in flutter_hooks. You can make a package for it if you wish :)

In the end, useSWR is very close to what Riverpod tries to do.

Cierra-Runis commented 6 months ago

Thanks a lot, I will try to use riverpod to implement it ❤️.