You need to sign in to do that
Don't have an account?
Megha Sachania
Lightning Security Review
Can anyone help me out for below issues :
I am using lightning web component with following code below :
connectedCallback() { setTimeout(() => { this.ready = true; }, 2000); }
After security review there is a issue listed below which need to be resolve for above code :
ISSUE : Any asynchronous function like setTimeout should be wrapped with $A.getCallback() There are similar instances across the application, please fix all of them.
More Details
https://lwc.dev/guide/lifecycle
https://salesforcediaries.com/2020/01/01/renderedcallback-in-lightning-web-component/