Skip to content

Commit

Permalink
updated: fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Jul 22, 2021
1 parent d2b4d2a commit 76232a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.next.js
Expand Up @@ -19,7 +19,10 @@ lazy.export = function lazyExport(Loader, Component) {
mount(el, parentScope) {
this.el = el
this.isMounted = true
const mount = () => this.mountLazyComponent(parentScope)
const mount = () => {
this.mountLazyComponent(parentScope)
this.el.dispatchEvent(new Event('load'))
}

if (cachedComponent) {
mount()
Expand Down

0 comments on commit 76232a9

Please sign in to comment.