Hi all,
I am developing a plugin for Bitbucket Server. One of its functionalities requires me to send a request to an external service to get some data. This data is then needed in different places in the plugin, one of which is the commit list.
I wrote a custom context provider for this, but it gets triggered with every component. On a page such as the commit list it can be a huge amount of requests in a short time. I would like to avoid that, since in the future the amount of data transferred will also grow.
I thought about passing context parameters from parent elements to their children. In this case, I have a custom web section that has a web panel attached to it. Since the web section is only rendered once, it makes sense to execute the request there. However, If I do that, I seem to be unable to pass the custom context of the web section to the attached web panel.
Is there a way of achieving what I want (i.e. passing context items from parent elements to children)?