Applications using the Coinbase Wallet SDK often need to react to multiple wallet-related events such as connect, disconnect, account changes, and network changes. Today, developers must subscribe to several separate events and manage their own derived state.
Problem Description
Handling multiple provider events separately can lead to duplicated logic, race conditions, and inconsistent UI state. Developers may also miss edge cases such as reconnects or partial state updates during initialization.
Proposed Solution
Introduce a unified lifecycle hook or callback that emits a consolidated wallet state object whenever relevant changes occur. This state should include connection status, accounts, and chain information, and should update consistently across connect, disconnect, and reconnect flows.