Skip to main content
LWC data Provisioning and reactivity

Hi All. As per salesforce documentation, @wire adaptor are reactivr. when  any data in the background changes then wire refreshes the data on its own and displays in the UI. I cannot understand this as if thats the case then why I need to use Refreshapex ? I used a wire apex to fetch and display account records in a table however the data is not displaying updated when I change any account record in the background unless manually refreshing.
3 件の回答
  1. 2023年11月6日 10:03
    @wire allows you to wire your component to an Apex method or an LDS (Lightning Data Service) resource. It establishes a data connection between your component and the data source, and it can automatically refresh data when changes are made to the source data. This reactivity depends on the specific data source and context. You can get more assistance from here : https://carsforyourhelp.com this is an online platform , open ticket and submit query with some details. 
0/9000