Skip to content

Commit

Permalink
fix response-stream example
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed May 24, 2024
1 parent 4c67079 commit ffef1cb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions examples/response_stream/public/mount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import * as React from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import { CoreSetup, CoreStart, AppMountParameters } from '@kbn/core/public';
import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public';
import { KibanaRenderContextProvider } from '@kbn/react-kibana-context-render';
import { PLUGIN_NAME } from '../common/constants';
import { ResponseStreamStartPlugins } from './plugin';
import { App } from './containers/app';
Expand Down Expand Up @@ -41,9 +42,11 @@ export const mount =
]);

const reactElement = (
<KibanaContextProvider services={deps}>
<App />
</KibanaContextProvider>
<KibanaRenderContextProvider {...core}>
<KibanaContextProvider services={deps}>
<App />
</KibanaContextProvider>
</KibanaRenderContextProvider>
);
render(reactElement, element);
return () => unmountComponentAtNode(element);
Expand Down

0 comments on commit ffef1cb

Please sign in to comment.