Open bravekingzhang opened 1 year ago
Issue Description:
When using the Get framework, there is an issue where the inner
GetBuilder
does not trigger reactive changes and UI updates when nested inside anObx
widget.Steps to Reproduce:
Use the Get framework in a Flutter application.
Create a nested layout structure where the outer layer uses
Obx
and the inner layer usesGetBuilder
.Bind an observed state within the inner
GetBuilder
and use that state to render the UI.Modify a value related to the observed state within the outer
Obx
.Observe whether the inner
GetBuilder
triggers reactive changes and updates the UI.Expected Behavior:
When modifying the value of the observed state within the outer
Obx
, the innerGetBuilder
should trigger reactive changes and update the UI.Actual Behavior:
In the nested
Obx
andGetBuilder
, only the outerObx
triggers reactive changes and UI updates, while the innerGetBuilder
does not respond to reactive changes.
Have you tried using just obx to trigger inner updates as well. If you move the getbuilder logic to the controller that has obx variables . You could just be done using one controller and one obx widget
Issue Description: When using the Get framework, there is an issue where the inner
GetBuilder
does not trigger reactive changes and UI updates when nested inside anObx
widget. Steps to Reproduce:
- Use the Get framework in a Flutter application.
- Create a nested layout structure where the outer layer uses
Obx
and the inner layer usesGetBuilder
.- Bind an observed state within the inner
GetBuilder
and use that state to render the UI.- Modify a value related to the observed state within the outer
Obx
.- Observe whether the inner
GetBuilder
triggers reactive changes and updates the UI.Expected Behavior: When modifying the value of the observed state within the outer
Obx
, the innerGetBuilder
should trigger reactive changes and update the UI. Actual Behavior: In the nestedObx
andGetBuilder
, only the outerObx
triggers reactive changes and UI updates, while the innerGetBuilder
does not respond to reactive changes.Have you tried using just obx to trigger inner updates as well. If you move the getbuilder logic to the controller that has obx variables . You could just be done using one controller and one obx widget
Yes, it worked fine after I removed the internal getbuilder, but I think this might be a bug. Inner getbuilder wrap ui should update as well
Issue Description: When using the Get framework, there is an issue where the inner
GetBuilder
does not trigger reactive changes and UI updates when nested inside anObx
widget.Steps to Reproduce:
Obx
and the inner layer usesGetBuilder
.GetBuilder
and use that state to render the UI.Obx
.GetBuilder
triggers reactive changes and updates the UI.Expected Behavior: When modifying the value of the observed state within the outer
Obx
, the innerGetBuilder
should trigger reactive changes and update the UI.Actual Behavior: In the nested
Obx
andGetBuilder
, only the outerObx
triggers reactive changes and UI updates, while the innerGetBuilder
does not respond to reactive changes.