Skip to main content

Questions tagged [lifecycle]

3 votes
1 answer
105 views

I have an LWC which implements a Lightning Tab, and in the connectedCallback() I setup a document-wide keydown handler to implement an Undo/Redo system. I then added a disconnectedCallback() to ...
Jason Clark's user avatar
  • 12.6k
3 votes
4 answers
2k views

I have an LWC that adds a timer (in connectedCallback) for periodic polling of an imperative apex API in order to do some processing related to the given context (which might be a given record, when ...
Phil W's user avatar
  • 39.6k
0 votes
2 answers
870 views

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

I have a lightning-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
  • 121
1 vote
0 answers
204 views

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
2 votes
1 answer
2k views

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
9k views

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
915 views

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
  • 75
1 vote
1 answer
1k views

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
106 views

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
  • 761