Skip to main content

Questions tagged [public-reactive-properties]

Filter by
Sorted by
Tagged with
1 vote
0 answers
47 views

Can someone please explain why the change in property not reflecting in child component?

I am going through getter-setters in LWC. If I am passing an object to child component on component load then it is working fine and showing on child component. But when the property is changed on ...
Vikrant 's user avatar
0 votes
1 answer
485 views

Throw an error and block users when LWC is placed on wrong page type

I'm trying to do something, but I am stuck on this scenario. So, I have a lwc that can be placed on multiple pages (Record Pages, Home Pages etc). The users will define the component destination, in a ...
blanco17's user avatar
2 votes
1 answer
202 views

how to view public properties/attributes of the aura/lwc component in managed packages?

how to view public properties/attributes of the aura/lwc component in managed packages? For Example: I want to use SomeNamespace:componentName in my markup/my component. I want to see the publicly ...
Daniel Deepak's user avatar
2 votes
1 answer
7k 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 ...
Daniel Retaleato's user avatar
2 votes
1 answer
3k 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 ...
Manish Anand's user avatar
0 votes
1 answer
1k 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 ...
eaeaoo's user avatar
  • 928
5 votes
1 answer
2k 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 ...
Yogesh D's user avatar
  • 590
0 votes
0 answers
1k 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 ...
thinker's user avatar
  • 1,442
3 votes
1 answer
3k 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-...
thinker's user avatar
  • 1,442
0 votes
1 answer
3k 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 ...
Daniel Deepak's user avatar
3 votes
1 answer
1k 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:...
Matthew Souther's user avatar
3 votes
2 answers
2k 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 ...
Matthew Souther's user avatar
0 votes
1 answer
793 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-...
Monty's user avatar
  • 3
4 votes
2 answers
3k 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#...
Robert Sösemann's user avatar
8 votes
1 answer
4k 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 ...
cloma's user avatar
  • 83
2 votes
1 answer
2k 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 ...
Hemavantha Rajesh Varma Mudunu's user avatar