Questions tagged [connected-callback]

The tag has no usage guidance.

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

LWC multiple apex calls on initialization (Best practices question)

PROBLEM: I have a LWC component which needs to gather data from different objects on initialization event (Objects are: custom object, files and metadata type). This is what I have in place working ...
Alex Cortes's user avatar
5 votes
1 answer
151 views

Is there a security hole in Salesforce's documentation?

I was looking at Salesforce's documentation for implementing an OAuth callback and I noticed they are accepting a "sfdc_community_url" from the client, which should normally only ever be a ...
Kevin Denham's user avatar
2 votes
1 answer
316 views

LWC - Using lwc:dom="manual" to render text with innerHTML but it does not work

I'm using lwc:dom="manual" and querySelector to capture and display the text content but it does not work. HTML code <h2 class="slds-truncate" title={record.Name}> <a ...
Pam's user avatar
  • 107
2 votes
1 answer
2k views

Spinner not working properly in LWC

If i do this: 1 async connectedCallback() { 2 this.showSpinner = true; 3 await this.getTableInformation(); 4 this.showSpinner = false; 5 } Spinner starts but never ends. Still a ...
Gabriel Serrano Salas's user avatar
1 vote
1 answer
740 views

Unable to call button.click() on connectedCallBack() in lightning web component ,it doesn't register

I am trying to pass data to a different component, which I was able to achieve with session.Storage but I am not able to click on a button programmatically. Deeply appreciated if anyone can guide me ...
Govind V's user avatar
1 vote
5 answers
14k views

LWC Quick Action - recordId propertyindefined in ConnectedCallback context

I am trying to create lwc quick action, which was introduced with the Summer 21 release. I want to use the recordId property from the object that I am on, but the property is 'undefined' in the ...
O. Schejbal's user avatar
1 vote
0 answers
212 views

connectedCallback not firing when state is used in NavigationMixin

connectedCallback lifecycle event is not firing when state is used during navigation. If state is removed than connectedCallback is firing. This behavior seems strange to me. AM I missing some ...
raunakchoraria's user avatar
0 votes
1 answer
932 views

Update custom LWC table if record is updated

I am new to LWC and here is my problem: I have table and values needs to be updated once the record fields are updated. Here is the code: 1.Apex Class public with sharing class LWCShowSpendigs { ...
Nomad's user avatar
  • 15
0 votes
1 answer
136 views

lightning-tabset picking the incorrect variable to set active-tab-value

I have a lightning-tabset with three tabs, problem is the active-tab-value of the lightning tabset, I wish to set it's value based on a boolean value that Im setting in connectedCallback but it picks ...
Amax1's user avatar
  • 109
0 votes
1 answer
94 views

Getting incorrect value of global attribute set at connectedCallBack inside another method

I am reading a value from localStorage (in connectedCallBack) in an lwc that I have set in another lwc, it reads the value correctly and executes the logic also correctly below, problem is the global ...
Amax1's user avatar
  • 109
0 votes
1 answer
1k views

Named Credentials Error - redirect_uri_mismatch

We have refreshed our sandbox, and I'm trying to restore functionality of a package that has stopped working after the refresh. I'm following the package installation instructions, which are clear, ...
Garywoo's user avatar
  • 163
0 votes
1 answer
632 views

Pagination datatable

I have a component with a component setting (number of records per page). There is also a child paginator that takes the value of the number of entries per page from the parent component. But I'm ...
Oleh Shepard's user avatar
0 votes
1 answer
356 views

I want to create a callback, but cannot find connected app under the Apps section

I am trying to create a callback from salesforce to other platform. I read some documentation, but I can't find where is the "connected app", is it because my roles issue?
Paul Fan's user avatar
  • 101
0 votes
0 answers
545 views

How to identify page has been loaded in LWC component?

I have a lwc component and it is using pubsub. When page is getting loaded pubsub is firing again and again. And hence increasing the page load time. Is there any way we can prevent pubsub to fire on ...
Aditya's user avatar
  • 1
-1 votes
1 answer
193 views

LWC - How to populate component when the page just load

I'm using Custom Setting to remember what user set for that specific setting. So when the component load, it will fetch values from Custom Setting. (1)If there is no value => Column will generate ...
Pam's user avatar
  • 107