Skip to content

BUG: _initializeServices is called without awaiting results in Blocking UI on Async Init #158

@aniket866

Description

@aniket866

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

  • Where: ChatScreen.initState

  • Issue: _initializeServices is called without awaiting (fire-and-forget). If the user types a message immediately, _supabaseService might not be ready, causing a crash in _sendMessage.

  • Fix: Show a loading spinner until _initializeServices completes.

@SharkyBytes Please checkout the PR raised for this fix

Record

  • I agree to follow this project's Code of Conduct
  • I want to work on this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions