Skip to content

bug: <AppKit/> blocks the UI thread on first mount #564

Description

@emberist

Describe the bug

Mounting <AppKit/> for the first time causes a visible UI freeze. The main thread is blocked during component initialization — likely synchronous adapter setup, WalletConnect client init, or storage hydration happening on mount.

To reproduce

  1. Conditionally mount <AppKit/> behind a boolean state gate
  2. Flip the gate to true while the app is visible and interactive
  3. UI freezes noticeably before the component is usable
{isReady && <AppKit />}

Expected behavior

Initialization should be async / deferred off the main thread — no visible frame drop on mount.

Actual behavior

Synchronous work on mount causes a visible UI freeze/jank.

Environment

  • @reown/appkit-react-native: 2.0.4
  • react-native: 0.81.5
  • Platform: iOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions