Skip to content

Feature Request: Add a unified connection lifecycle hook for wallet state changes #1844

@paste-04copilot

Description

@paste-04copilot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions