You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the NetworkController switches networks, the state changes 3 times: once to update providerConfig, once to update the network metadata (e.g. the network status), and once to update the selectedClientId. In between these changes, the NetworkController state will be inconsistent (providerConfig will not match the selectedClientId, and the network status will be stale). These state changes are all synchronous, they don't depend on any network requests (the lookup step comes later).
We should update the NetworkController to make a single state change, rather than three. This would prevent the state from being inconsistent.
The text was updated successfully, but these errors were encountered:
When the
NetworkController
switches networks, the state changes 3 times: once to updateproviderConfig
, once to update the network metadata (e.g. the network status), and once to update theselectedClientId
. In between these changes, theNetworkController
state will be inconsistent (providerConfig
will not match theselectedClientId
, and the network status will be stale). These state changes are all synchronous, they don't depend on any network requests (the lookup step comes later).We should update the
NetworkController
to make a single state change, rather than three. This would prevent the state from being inconsistent.The text was updated successfully, but these errors were encountered: