function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Niraj Singh 28Niraj Singh 28 

navigateToComponent is not getting refresh after changing on component not reflecting

Here i have changed my component but not reflecting changes what i have done, Loading Previoud design.

<aura:component controller="ContactsController" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes" access="global">   
  <aura:attribute name="carinfo" type="Car__c[]"/>
    <aura:handler name="init" value="{!this}" action="{!c.gocarinfo}" />
    <aura:iteration var="cars" items="{!v.carinfo}">
<lightning:button class="{! v.selected ? 'tile selected' : 'tile' }" onclick="{!c.onBoatClick}">
        <div style="background-image: url(https://vehicalsm-dev-ed--c.visualforce.com/resource/1545310276000/Hatchback_image?);" class="innertile">
            <div class="lower-third">
                <h1 class="slds-truncate">{!cars.Name}</h1>
                <p>{!cars.Car_type__c}</p>
            </div>
        </div>
    </lightning:button> 
        </aura:iteration>   
       </aura:component>

 
Khan AnasKhan Anas (Salesforce Developers) 
Hi Niraj,

Greetings to you!

Starting in API version 43.0, the force:navigateToComponent event is deprecated. Salesforce recommend implementing the lightning:isUrlAddressable interface on your target component and navigating to the component using lightning:navigation component with the standard__component page type instead. 

Please refer to the below links which might help you further with the above requirement.

https://www.salesforce.com/video/2646474/

https://developer.salesforce.com/docs/component-library/bundle/force:navigateToComponent/documentation

https://salesforce.stackexchange.com/questions/242529/take-20-refreshing-page-after-update

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Niraj Singh 28Niraj Singh 28
Hi Khan Anas,

I had look on given video and i got new <lightning:navigation> for navigation but here i did'nt got any example for custome component navigation.
Here my requirement is navigate to new component after saving recode from lightning controller of component please have look at my requirment and give me one example for custome component navigation using <lightning:navigation>.