Questions tagged [public-reactive-properties]

Filter by
Sorted by
Tagged with
7
votes
1answer
2k 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 ...
4
votes
2answers
947 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#...
3
votes
2answers
300 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 ...
2
votes
1answer
551 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 ...
2
votes
1answer
141 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 ...
2
votes
1answer
55 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-...
2
votes
1answer
229 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:...
0
votes
1answer
332 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 ...
0
votes
1answer
28 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 ...
0
votes
0answers
61 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 ...
0
votes
0answers
34 views

Prevent Lightning Web Component refresh on Record Update

This is a high level question, has anyone had success tracking user interactions with Lightning Web Components within the browser? I have a scenario where I need to the LWC to pop the first time a ...
0
votes
1answer
85 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-...