File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed
packages/core/src/controllers Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @reown/appkit-core-react-native ' : patch
3
+ ' @reown/appkit-auth-ethers-react-native ' : patch
4
+ ' @reown/appkit-auth-wagmi-react-native ' : patch
5
+ ' @reown/appkit-coinbase-ethers-react-native ' : patch
6
+ ' @reown/appkit-coinbase-wagmi-react-native ' : patch
7
+ ' @reown/appkit-common-react-native ' : patch
8
+ ' @reown/appkit-ethers-react-native ' : patch
9
+ ' @reown/appkit-ethers5-react-native ' : patch
10
+ ' @reown/appkit-scaffold-react-native ' : patch
11
+ ' @reown/appkit-scaffold-utils-react-native ' : patch
12
+ ' @reown/appkit-siwe-react-native ' : patch
13
+ ' @reown/appkit-ui-react-native ' : patch
14
+ ' @reown/appkit-wagmi-react-native ' : patch
15
+ ' @reown/appkit-wallet-react-native ' : patch
16
+ ---
17
+
18
+ fix: improved state array updates in connection and router controllers
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export const ConnectorController = {
30
30
} ,
31
31
32
32
addConnector ( connector : Connector ) {
33
- state . connectors . push ( ref ( connector ) ) ;
33
+ state . connectors = [ ... state . connectors , ref ( connector ) ] ;
34
34
} ,
35
35
36
36
getConnectors ( ) {
Original file line number Diff line number Diff line change @@ -72,13 +72,13 @@ export const RouterController = {
72
72
push ( view : RouterControllerState [ 'view' ] , data ?: RouterControllerState [ 'data' ] ) {
73
73
if ( view !== state . view ) {
74
74
state . view = view ;
75
- state . history . push ( view ) ;
75
+ state . history = [ ... state . history , view ] ;
76
76
state . data = data ;
77
77
}
78
78
} ,
79
79
80
80
pushTransactionStack ( action : TransactionAction ) {
81
- state . transactionStack . push ( action ) ;
81
+ state . transactionStack = [ ... state . transactionStack , action ] ;
82
82
} ,
83
83
84
84
popTransactionStack ( cancel ?: boolean ) {
You can’t perform that action at this time.
0 commit comments