This was reported to Wittified by a customer of Announcer for Confluence Cloud (JST-352300). We've tracked it down to being a connect issue where the web-panels are being loaded multiple times if you go to the Overview and Pages landing pages of a Space as a first "click" into a space.
- Got directly to the Overview URL
- While in Space Overview, reload the page
Consistently render the web panel once.
App is being shown twice.
We recreated this by creating an app at https://objects-us-west-1.dream.io/wittified-general/confluence-web-panels/atlassian-connect.json
The html of /web-panels
The end result should be that you should only get 1 alert with 'loaded the atl.general location' appearing and the text of 'This should only be shown once!'
However the end result is if you go to the Space Overview of Space directly(see entry-space.mp4) - you get the alert twice and 'This is should only be shown once!' is rendered twice on the page. The Connect framework is confused at this point because there are 2 iframes and don't stop the Loading Spinner. If we go to a Page by clicking through the navigation and then navigate back to the Overview page - then it works. It's only the first load.
If we go to a Page directly(see entry-page.mp4) and then go to the Space Overview - everything is working properly.