Committed by
GitHub
Merge pull request #1614 from WillowWisp/master
Fix RxInterface.proxy losing its previous value on exception
Showing
1 changed file
with
1 additions
and
0 deletions
@@ -25,6 +25,7 @@ abstract class RxInterface<T> { | @@ -25,6 +25,7 @@ abstract class RxInterface<T> { | ||
25 | RxInterface.proxy = observer; | 25 | RxInterface.proxy = observer; |
26 | final result = builder(); | 26 | final result = builder(); |
27 | if (!observer.canUpdate) { | 27 | if (!observer.canUpdate) { |
28 | + RxInterface.proxy = _observer; | ||
28 | throw """ | 29 | throw """ |
29 | [Get] the improper use of a GetX has been detected. | 30 | [Get] the improper use of a GetX has been detected. |
30 | You should only use GetX or Obx for the specific widget that will be updated. | 31 | You should only use GetX or Obx for the specific widget that will be updated. |
-
Please register or login to post a comment