Canvas app in Lightning Component is not loading as expected when accessing the app as record page twice or more
Last updated 19 days ago ·Reference W-4578768 ·Reported By 4 users
In Lightning Experience, Canvas app in Lightning Component is not shown as expected when accessing the app as record page twice or more.
1. Configure My domain
2. Configure the Canvas App as "Hello_World"
3. Create the following Lightning Component
Name : Test.cmp
<force:canvasApp developerName="Hello_World" canvasId="Hello_World"/>
4. Override View button of Contact by the above Lightning Component
5. Switch to Lightning Experience
6. Go to Contact tab and choose "All Contacts" view
7. Open a Contact
You will see Canvas app is shown. This is expected.
8. Go back to "All Contacts" view by back button of browser
9. Open the other Contact
You will see a blank page . This is unexpected.
Workaround applicable based on different scenarios
a). Remove canvasId attribute of force:canvasApp
If force:canvasApp does not have canvasId attribute, the canvasId section in id(name) becomes to sequence number.As the result, id(and name) made to be difference between each pages.So, this behavior can be avoided.
b). There are certain scenarios where you can use the above workaround for eg : if you are using an app from App exchange where you do not have control on the Canvas App and LEX code .
For these kind of scenarios the ONLY workaround would be refreshing the browser that will load the correct canvas app.
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.