11 votes
Accepted

LWC wired service getRecord won't rerender with reactive property

Documenting the resolution I found to my question here, so apparently LWC doesn't like if you you use imported references to the geo-location compound fields which is why this doesn't work with wired ...
user avatar
  • 550
10 votes
Accepted

How to access child Web Component property from parent Aura Component controller?

Is it possible to read child Web Component property from parent Aura Component? Yes you can. you are trying to call a method or a property in your LWC component from aura component the LWC way but ...
user avatar
  • 7,553
5 votes
Accepted

How to set a public reactive property in the declared component during component construction

It simply means that you need to set the value in just one of two places. Both will be demonstrated here, as well as what's not: export default class AppName extends LightningElement { @api ...
user avatar
  • 434k
4 votes
Accepted

Updating the Data for an LWC lightning-datatable isn't re-rendering the lightning-datatable

My guess is that the table doesn't know to update because you have specified a key field of id but you have not provided on in the object array that you are feeding to the table. The table likely ...
user avatar
4 votes

Dynamic Icon loading in LWC doesn't work

Have you tried using the <lightning-icon> tag? Documentation can be found here. For your code, the HTML should look something like this: (you should modify the component call a little bit, so ...
user avatar
  • 1,330
4 votes
Accepted

Dynamic Icon loading in LWC doesn't work

You can make it work using the <lighting-icon> tag. <template if:true={icon}> <lightning-icon icon-name={iconName} size="x-small" ></lightning-icon> </template>
user avatar
  • 208
3 votes
Accepted

Function decorated with Wire firing two times (no vars are marked as tracked)

Assuming this component lives on an Opportunity record, this is perfectly reasonable behavior. The record is already loaded once, so the cached version is returned, then LDS (Lightning Data Service) ...
user avatar
  • 434k
3 votes
Accepted

DoInit in LWC. Making lifecycle hook (connectedCallback) as public using @api

I haven't tried making the connected callback public, but I have an alternative for this. You can write a separate public method for init. Let us say, @api doInit(){ // do your init logic. } You ...
user avatar
  • 10.6k
3 votes

LWC: Wait until property propagates down containment hierarchy

I have made some code changes. Now On click of 'Validate All', box also expands as well as validation gets performed. Check this Playground link - Link Hope this is useful & your problem is ...
user avatar
  • 750
3 votes
Accepted

LWC: Wait until property propagates down containment hierarchy

As you are using <template if:true={expanded}>, the body of this template will be removed from DOM when the condition becomes false. So, you can use a div with hide or show as below: <div ...
user avatar
3 votes
Accepted

LWC - On change events , pass data to sibling components

Your child should notify the parent when there's a change: <lightning-input ... onchange={handleFilterChange}> </lightning-input> ... // Inside child1.js handleFilterChange(event) { ...
user avatar
  • 434k
2 votes
Accepted

LWC - handler on public array property change

The appropriate way to deal with this is to make the API property a getter/setter pair... @api get inputArray() { return this._inputArray; } set inputArray(value) { this._inputArray = value; ...
user avatar
  • 27.6k
1 vote

LWC: Second async child function call fails

Can you try following code and see if this works .I avoided arrow function and it solved my issue : ** UPDATE July 2 // async function ** @api async testMe(){ return 'Hello world!'; }
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible