Questions tagged [public-reactive-properties]

Filter by
Sorted by
Tagged with
2
votes
1answer
2k views

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

I'm running into an issue getting a lightning-datatable to rerender when I update the data attribute. My LWC contains 3 buttons for testing and a lightning-datatable that is connected to the ...
0
votes
1answer
719 views

LWC - On change events , pass data to sibling components

I have below lwc components hierarchy.Custom events are fired in the Child2 , handle it in Parent , do some modification to the payload and assign it to a @track property (filters) in parent . On ...
0
votes
1answer
249 views

LWC - handler on public array property change

I have a child lwc which receives an array as a public property (@api inputArray), does some work on it, and then returns another array via events to the parent. When the input array is changed by the ...
4
votes
1answer
711 views

LWC wired service getRecord won't rerender with reactive property

I am trying to use wire service to get the geo data from a record, and expecting the component will rerender every time wire service gets the data. This is how my component JS looks like, import ...
0
votes
0answers
443 views

Child LWC loading before Parent

I have an parent component that fires an Apex Method. The method grabs data and passes to the child component, then the child component runs some logic and fires an alert. The weird thing is that when ...
2
votes
1answer
1k views

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

Greetings StackExchange Friends! I have an odd situation. I have this same design pattern on the Contact Object, and I'm attempting to replicate it on the Opportunity Object. High Level: c-parent-...
0
votes
1answer
1k views

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

In LWC, I am trying to implement onload/doInit logic as in aura component. for a certain scenario I have to reinvoke/call that doInit method from the parent component. Instead doInt,in LWC am ...
2
votes
1answer
540 views

LWC: Second async child function call fails

I would like to call an async function on a child component from its parent. This works the first time I call the function, but the second time, I get a "Sorry to interrupt" error with this:...
3
votes
2answers
739 views

LWC: Wait until property propagates down containment hierarchy

I'm working on a Lightning Web Component form where child components contain input fields. These components can be expanded to see all the fields, or collapsed to save space. So far, so good. The ...
0
votes
1answer
180 views

Reactive Input Parameters for LWCs on FlexiPages

I am trying to create the most user friendly experience in an LWC. I have seen the documentation for how to generate a picklist from apex like so: (https://developer.salesforce.com/docs/component-...
4
votes
2answers
2k views

Dynamic Icon loading in LWC doesn't work

I am using the progress-ring LWC component from https://github.com/texei/progress-ring and fail to make the SLDS SVG Icon displayed dynamic work: Usage: <c-progress-ring ... icon="symbols.svg#...
8
votes
1answer
3k views

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

I have an issue working on integration between Aura Component and Lightning Web Component. I have one nested Lightning Web Component in an Lightning Component. When I try to access the child I get ...
2
votes
1answer
982 views

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

I'm reading about lwc properties and came across a statement. A component that declares a public reactive property can’t set the property value, except at component construction time. A parent ...