• Shubham Verma 69
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I have an LWC with a public method @show().  This needs to fire on the lwc when it's parents aura component finishes loading.

I have tried doInit, all the render functions and none of them work.

I added a button on the aura parent and handleButtonClick handler - when clicking it fires the @show method and displays.  This is not my ideal functionality.

 I'm looking for a way to fire the @show method on the LWC child when the aura parent finishes loading.  How do I do this?

this works great:

handleClick: function (component, event, helper) {
component.find('childlwc').show();
}

What i'm looking for is a way to call the show method on childlwc once the page finishes loading.

Thanks!
  • April 24, 2020
  • Like
  • 0