Commit 4fb9140
authored
fix(runtime): make sure watchers can fire immediately if the custom element is already defined (#6381)
customElements.whenDefined always returns the answer asynchronously. Making the check synchronous when possible resolves the issue
fixes: 6373
BREAKING CHANGE: Watchers will fire earlier than before, but this is the expected behavior1 parent 0456db1 commit 4fb9140
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
114 | 121 | | |
115 | 122 | | |
116 | 123 | | |
| |||
0 commit comments