You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The same constructor is allowed on multiple registries. However, a direct constructor call will only look up the global registry, because otherwise it has no way to know which registry to use.
Yeah, this is spelled out, and was decided on at the Tokyo F2F (I think?).
The main requirement is that new MyElement() has the same behavior with and without the presence of scoped registries - we can't break existing code. So there's only one right answer: it succeeds if the element is registered in the global registry, and fails if it isn't.
This was originally raised by @matthewp:
I can't see how the discussion concluded this point. Are elements allowed on multiple registries? What happens with the following?
/cc @xiaochengh @justinfagnani
The text was updated successfully, but these errors were encountered: