Skip to content

Commit 62c3c83

Browse files
author
Egor Komarov
committed
fix: remove createWidgetProperty duplicated subscription
1 parent b32116f commit 62c3c83

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

lib/core/wm/notifier_subscriptions_mixin.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ mixin NotifierSubscriptionsMixin<W extends ElementaryWidget,
114114
final initialValue = isMounted ? reader(widget) : null;
115115
final notifier = createNotifier<T>(initialValue);
116116
_widgetPropsReaders[notifier] = reader;
117-
_subscriptionsCollection.add(notifier);
118117
return notifier;
119118
}
120119

lib/feature/wallet/wallet_prepare_transfer/wallet_prepare_transfer_page_wm.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ class WalletPrepareTransferPageWidgetModel extends CustomWidgetModel<
100100
(w) => w.tokenSymbol,
101101
);
102102

103-
StreamSubscription<dynamic>? _currencySubscription;
104-
105103
WalletPrepareTransferData? get _data => screenState.value.data;
106104

107105
WalletPrepareTransferAsset? get _selectedAsset => _data?.selectedAsset;
@@ -119,12 +117,6 @@ class WalletPrepareTransferPageWidgetModel extends CustomWidgetModel<
119117
_initListeners();
120118
}
121119

122-
@override
123-
void dispose() {
124-
_currencySubscription?.cancel();
125-
super.dispose();
126-
}
127-
128120
String? getSeedName(PublicKey custodian) => model.getSeedName(custodian);
129121

130122
void onChangeAsset(AmountInputAsset newAsset) {

0 commit comments

Comments
 (0)