Custom Visualizations, How to pass in plugin start lifecycle


I was looking at the following example to see how a custom kibana viz is set up.

From what I see we can create a react/base visualization in the setup lifecycle function of the plugin. This means we could pass setup lifecycle functions of various plugins into the visualization, provided I'm importing them. Is there anything I can do to pass imported plugin start lifecycle parameters into the visualization, given it's created in the setup function? In the example the start function is empty, and I have yet to find any other examples of a custom visualization that uses the start life cycle.

Is there a way to do this?


You can use CoreSetup.getStartServices to access start services.

There's an example of this api being used here Kibana Core API | Kibana Guide [7.11] | Elastic

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.