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.07k stars 175 forks source link

Support/Compatibility for GetX ? #336

Closed kumardennis closed 1 year ago

kumardennis commented 1 year ago

Hi!

I was wondering if flutter_hooks can be used with GetX ? If so, is there any example ?

rrousselGit commented 1 year ago

Do you have a more specific question?

kumardennis commented 1 year ago

Is it possible to run effect on change of observable var from a GetXController ? In other words, stating controller's value as dependency in useEffect?

rrousselGit commented 1 year ago

You can add the controller's value as key in useEffect.

rrousselGit commented 1 year ago

Closing as this was answered and there's no action on my end