Questions tagged [lifecycle]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
47 views

Why wire adapted doesn't retrieve data?

@wire(fetchCustomSettings) wiredData; renderedCallback() { if (this.wiredData) { console.log('this.wiredData ##', this.wiredData.data); refreshApex(this.wiredData); ...
Fark's user avatar
  • 13
0 votes
1 answer
48 views

lightning-tabset picking the incorrect variable to set active-tab-value

I have a lighting tabset with three tabs, problem is the active-tab-value of the lightning tabset, I wish to set it's value based on a boolean value that Im setting in connectedCallBAck but it picks ...
Amax1's user avatar
  • 99
1 vote
0 answers
60 views

Something is wrong with my code. [LWC Lifecycle hook problem]

I am stuck and unable to figure out a way to get out of this problem. I know I am doing something terribly wrong here. I have two LWC Components - Parent [a container with multiple values to select[...
sfdc_cosmokramer's user avatar
1 vote
1 answer
755 views

Do something every time an @api property value changes in child component [duplicate]

I am passing a property from a parent to a child component. I am trying to perform a task every time the value passed from a component's parent to itself changes. export default class displayData ...
darthcoderUS's user avatar
0 votes
1 answer
6k views

How to refresh the Parent component after a button on child component is pressed?

Problem: I need to have the parent component to make another Apex call, apiCallout(), after the save button is clicked on the child component. That way the UI is displaying current data, however the ...
Tristan Berger's user avatar
1 vote
1 answer
454 views

In LWC I cannot use a variable which comes from the parent Aura component

I wrapped an LWC with an Aura component for use it as a quick action and I sent a record's detail from the Aura to the LWC. AuraWrapper: <aura:attribute name="orderRecord" type="...
pt_5858's user avatar
  • 45
1 vote
1 answer
822 views

How do I load my data from wire before executing renderedCallback?

I am trying to send an object, accountFields (comes from the wire method), to a method, makeTree, which is called in a renderedCallback. The makeTree renders a tree hierarchy ui component. A ...
Benton's user avatar
  • 51
1 vote
0 answers
32 views

Lifecycle hook for child component?

I understand lifecycle hooks for a custom LWC. But how do I detect when a child LWC has loaded in the DOM? For example, let's say I have a <lightning-datatable> that is a child of a custom LWC I'...
jbyrd's user avatar
  • 601