Skip to content

Commit dcab4fa

Browse files
author
John Schulz
committed
Move setClient call from plugin.start to plugin.setup
1 parent 65c271c commit dcab4fa

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • x-pack/legacy/plugins/integrations_manager/public

x-pack/legacy/plugins/integrations_manager/public/plugin.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ export interface PluginCore {
3636
export class Plugin {
3737
constructor(initializerContext: PluginInitializerContext) {}
3838
// called when plugin is setting up during Kibana's startup sequence
39-
public setup(core: CoreSetup) {}
39+
public setup(core: CoreSetup) {
40+
setClient(core.http.fetch);
41+
}
4042
// called after all plugins are set up
4143
public start(core: PluginCore) {
42-
setClient(core.http.fetch);
4344
ReactDOM.render(<App core={core} />, core.renderTo);
4445
}
4546
}

0 commit comments

Comments
 (0)