I am developing a plugin where there are multiple object views. Each view contains an html content inside it.
Consider there are 3 object views.
View 1 has API call 1 , view 2 has API call 2 and view 3 has API call 3.
If I navigate to all 3 views and then press refresh , then in browser console, I see all API calls happening 3 time.
(i.e) API call 1 , 2 and 3 is happening 3 times.
The number of times call happens is equivalent to the number of object views/html content inside each view.
Is there any fix for this ?
Below is a sample extension view I added.
<extension id="com.vmware.samples.rack.AnalysisView">
<extendedPoint>com.vmware.samples.rack.monitorViews</extendedPoint>
<object>
<name>Analysis</name>
<componentClass className="com.vmware.vsphere.client.htmlbridge.HtmlView">
<object>
<root>
<url>/vsphere-client/k2vcpui/resources/vbddsp.html</url>
</root>
</object>
</componentClass>
</object>
</extension>
I am using SDK 6.0.0