LWC RefreshView API - Update standard view from custom component without Page Refresh

Sdílet
Vložit
  • čas přidán 4. 09. 2024
  • ✨ lightning/refresh module! ✨
    To leverage the power of the RefreshView API, simply import the lightning/refresh module into your LWC code. This module not only replaces force:refreshView for Aura components but also offers additional capabilities.
    With the lightning/refresh module, you gain access to:
    🔄 The RefreshEvent event: Now, your module can fire this event to indicate the need for a refresh. It's a handy way to trigger updates in your LWCs dynamically.
    🔧 Methods for registration: Components can register to receive the dispatched refresh event and kickstart the refresh process. This allows for seamless communication and synchronization between different parts of your Salesforce org.
    💡 Callback methods: You can register callback methods that are invoked during the refresh process. This enables you to perform specific actions or execute custom logic when the refresh event occurs.
    CODE Available on - www.udemy.com/...
    #lwc #summer23 #salesforce

Komentáře • 11

  • @ZNASH05
    @ZNASH05 Před rokem

    Very nicely explained thanks

  • @animatedvinesofmk2774

    Amazing could you please make a one project on heavy Integration which will cover everything which includes named credentials and client id . Please make one project on that

  • @isdamful
    @isdamful Před rokem

    Hey nikhil please do make a video on aura refresh view event, keep the great work up

  • @sandippaswan509
    @sandippaswan509 Před měsícem

    Pls can u help me...How to refresh the data table when record is created... record creating component not available in lwc

  • @payelghosh6047
    @payelghosh6047 Před 4 měsíci

    LWS is enabled in my org. Still the related list is not getting refreshed automatically after clicking the LWC submit button. Will it only work for standard related list and not for custom ones?

  • @sairamakanthlingaparthi4095

    Amazing thanks for ur efforts

  • @purnaunnagiri
    @purnaunnagiri Před 4 měsíci

    Will it work on IOS Ipad?

  • @ravali7099
    @ravali7099 Před 5 měsíci

    It is not working with quick action, I have used imperative apex to update the record, once I got the success result, I have dispatched refresh event however it is not refreshing the related list data.

  • @jeraldsayson
    @jeraldsayson Před 10 měsíci

    Does this works on a Custom Objects?

  • @udayakumar5588
    @udayakumar5588 Před rokem

    Hi Nikhil
    Can you make an integration course on Udemy for beginners? How you did for LWC? That will be helpful. We don't have proper integration course on Udemy.