Skip to content

Make Initializers Order Independent #52

@dyoder

Description

@dyoder

Some initializers depend on others. For example, many event initializers depend on the shadow DOM having been attached. If they're specified in the wrong order, the event handlers won't fire appropriately. This is both brittle and difficult to debug. We need a way to ensure that either

  1. Initializers run in the correct order
  2. Initializers whose dependencies aren't met issue a warning

Option (1) would involve some kind of dependency mechanism. Option (2) is simpler and, although it doesn't entirely solve the problem, at least makes it easier to identify the problem.

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