Questions tagged [lifecycle]
The lifecycle tag has no usage guidance.
8
questions
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);
...
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 ...
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[...
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 ...
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 ...
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="...
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 ...
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'...