jonataslaw / getx

Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
MIT License
10.28k stars 1.61k forks source link

Is there any way to get callback from controller with Obx()? #1417

Open FidaMOhsin opened 3 years ago

FidaMOhsin commented 3 years ago

Hi, I'm creating an app that is using MVVM Pattern. So I'm stuck at one thing. Basically I'm getting data with Obx() and Obx() return a widget. But I didn't want on widget. I just need call back where i will get data, loading value from controller.

roipeker commented 3 years ago

Maybe you are talking about Workers? Please check the docs. Obx is a widget and isn't meant to return values that aren't Widgets.