(e: Event)
| 87 | if (isString(interactions)) interactions = [interactions] |
| 88 | let hasHydrated = false |
| 89 | const doHydrate = (e: Event) => { |
| 90 | if (!hasHydrated) { |
| 91 | hasHydrated = true |
| 92 | teardown() |
| 93 | hydrate() |
| 94 | // replay event |
| 95 | e.target!.dispatchEvent(new (e.constructor as any)(e.type, e)) |
| 96 | } |
| 97 | } |
| 98 | const teardown = () => { |
| 99 | forEach(el => { |
| 100 | for (const i of interactions) { |
no test coverage detected