Skip to content

Add constructor parameter validation#247

Description

@meshackyaro

Description

SDK constructor performs async validation causing unhandled promise rejections. Constructors should be synchronous.

Component

SDK

Difficulty

馃煛 Medium

Tasks

  • Move async logic out of constructor
  • Add separate async init() method
  • Validate synchronously in constructor
  • Update initialization documentation
  • Add init pattern examples

Acceptance Criteria

  • Constructor is synchronous
  • Async initialization explicit
  • No unhandled promise rejections

Estimated Time

2 days

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions