Questions tagged [public-reactive-properties]
The public-reactive-properties tag has no usage guidance.
15
questions
0
votes
1
answer
73
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 ...
0
votes
0
answers
102
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 ...
2
votes
1
answer
6k
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 ...
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 ...
0
votes
1
answer
940
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 ...
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 ...
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 ...
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-...
0
votes
1
answer
2k
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 ...
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:...
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 ...
0
votes
1
answer
601
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
2
answers
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
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 ...
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
...