Skip to content

Commit

Permalink
fix(init): componentDidLoad called twice
Browse files Browse the repository at this point in the history
Close #498
  • Loading branch information
manucorporat authored and adamdbradley committed Feb 9, 2018
1 parent 9f7061d commit a49f1a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/instance/init-component-instance.ts
Expand Up @@ -52,7 +52,7 @@ export function initComponentLoaded(plt: PlatformApi, elm: HostElement, hydrated
// all is good, this component has been told it's time to finish loading
// it's possible that we've already decided to destroy this element
// check if this element has any actively loading child elements
if (elm._instance && !elm._hasDestroyed && (!elm.$activeLoading || !elm.$activeLoading.length)) {
if (!elm._hasLoaded && elm._instance && !elm._hasDestroyed && (!elm.$activeLoading || !elm.$activeLoading.length)) {

// cool, so at this point this element isn't already being destroyed
// and it does not have any child elements that are still loading
Expand Down

0 comments on commit a49f1a6

Please sign in to comment.