tag:blogger.com,1999:blog-8707943299537466355.post1993666671107077165..comments2024-02-23T05:31:49.814-08:00Comments on Salesforce Lightning Web Components, Aura Components, Apex Triggers, Apex REST API Integration: LWC refreshApex: How To Refresh Page Data in Lightning Web ComponentUnknownnoreply@blogger.comBlogger11125tag:blogger.com,1999:blog-8707943299537466355.post-26214085183286285912023-11-27T07:58:54.010-08:002023-11-27T07:58:54.010-08:00how can we achieve this if we have {data, error} i...how can we achieve this if we have {data, error} in wire function?Veerabahuhttps://www.blogger.com/profile/13250570487727967597noreply@blogger.comtag:blogger.com,1999:blog-8707943299537466355.post-3483142535203951792023-11-27T07:53:48.112-08:002023-11-27T07:53:48.112-08:00how can we achieve this if we have {data, error} i...how can we achieve this if we have {data, error} in the wire function?Veerabahuhttps://www.blogger.com/profile/13250570487727967597noreply@blogger.comtag:blogger.com,1999:blog-8707943299537466355.post-1406549640968317092023-11-06T10:44:16.165-08:002023-11-06T10:44:16.165-08:00I was facing issue with Imperative method and I se...I was facing issue with Imperative method and I searched so many sites but couldn't find solution as to how to refresh with help of Imperative method. The only problem in my solution was , I was using cacheable=true, when I removed this, it started working. Thanks.Shrutihttps://www.blogger.com/profile/00335792715317085824noreply@blogger.comtag:blogger.com,1999:blog-8707943299537466355.post-10770930803492826082023-01-01T06:24:31.707-08:002023-01-01T06:24:31.707-08:00Call the imperative function again wherever you wa...Call the imperative function again wherever you want to refresh and apex method should not have (cacheable=true).Venu Guttahttps://www.blogger.com/profile/10135842310253577258noreply@blogger.comtag:blogger.com,1999:blog-8707943299537466355.post-6912870102996311532022-12-26T22:19:56.619-08:002022-12-26T22:19:56.619-08:00How can we use this refreshApex() functionality in...How can we use this refreshApex() functionality in case of Imperative methods instead of wireMNhttps://www.blogger.com/profile/15578676301157661552noreply@blogger.comtag:blogger.com,1999:blog-8707943299537466355.post-74054235444762779222022-01-03T19:18:29.816-08:002022-01-03T19:18:29.816-08:00So we needed the result of the wire to pass into r...So we needed the result of the wire to pass into refreshApex(). Thank you for this tutorial! It helped alot.Ko.https://www.blogger.com/profile/17709694322287485834noreply@blogger.comtag:blogger.com,1999:blog-8707943299537466355.post-90783127774384927962021-10-30T13:29:17.374-07:002021-10-30T13:29:17.374-07:00You're a life saverYou're a life saverRahulhttps://www.blogger.com/profile/16654264106228664449noreply@blogger.comtag:blogger.com,1999:blog-8707943299537466355.post-67128826760269723652021-10-30T11:20:03.053-07:002021-10-30T11:20:03.053-07:00You're a lifesaver!!You're a lifesaver!!<br />Rahulhttps://www.blogger.com/profile/16654264106228664449noreply@blogger.comtag:blogger.com,1999:blog-8707943299537466355.post-46087763142421984962021-02-22T07:06:36.637-08:002021-02-22T07:06:36.637-08:00Thank you very very much. Perfect explaination wit...Thank you very very much. Perfect explaination with working solution :)Anonymoushttps://www.blogger.com/profile/13687179937278958720noreply@blogger.comtag:blogger.com,1999:blog-8707943299537466355.post-30453936083297923122021-01-26T19:23:54.392-08:002021-01-26T19:23:54.392-08:00result is object which contains data, error proper...result is object which contains data, error properties. "data" contains success response from server.Venu Guttahttps://www.blogger.com/profile/10135842310253577258noreply@blogger.comtag:blogger.com,1999:blog-8707943299537466355.post-22395943205911087752021-01-24T20:57:08.405-08:002021-01-24T20:57:08.405-08:00why are we using .data ?
this.accountList = resul...why are we using .data ? <br />this.accountList = result.data;Anonymoushttps://www.blogger.com/profile/15795623181806931486noreply@blogger.com