Workaround: Refresh Custom LWC on Change of Data in Standard Components or Backend Updates in SFDC
Автор: Salesforce Bolt
Загружено: 2024-04-07
Просмотров: 6061
Описание:
If you are looking for a solution to refresh your custom Lightning Web Component on change of data in one of the Standard Component or from Backend. This blog is for you!
To refresh the APEX in LWC we have refreshApex(), to refresh the standard components on change of custom LWC we have refreshViewAPIs
To refresh a Custom LWC whenever data is changing on Standard component or in backend unfortunately there are no OOTB way to achieve it. But we are here to create a workaround of it.
As a workaround we will use Platform Events to notify custom LWC that something has changed in data and it needs to refresh.
#refresh #lwc #salesforce
Join me on Instagram : / iamkapilbatra
My journey : https://www.salesforcebolt.com/p/abou...
Blog / Code Snippet : https://www.salesforcebolt.com/2024/0...
Website : https://www.salesforcebolt.com
LinkedIn : / salesforcebolt
Twitter : / salesforcebolt
Facebook : / iamsalesforcebolt
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: