Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Initializers Order Independent #52

Open
dyoder opened this issue Aug 12, 2024 · 0 comments
Open

Make Initializers Order Independent #52

dyoder opened this issue Aug 12, 2024 · 0 comments

Comments

@dyoder
Copy link
Contributor

dyoder commented Aug 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant