From 73e8fa3b853328f7f5af7f3778ef9523ea4c44a2 Mon Sep 17 00:00:00 2001 From: Timothy Sullivan Date: Fri, 24 May 2024 10:26:24 -0700 Subject: [PATCH 1/2] fix response-stream example --- examples/response_stream/public/mount.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/response_stream/public/mount.tsx b/examples/response_stream/public/mount.tsx index 7309abf5e0022e..77eebfcd2233dd 100644 --- a/examples/response_stream/public/mount.tsx +++ b/examples/response_stream/public/mount.tsx @@ -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'; @@ -41,9 +42,11 @@ export const mount = ]); const reactElement = ( - - - + + + + + ); render(reactElement, element); return () => unmountComponentAtNode(element); From f086e1157a852a0f8165f93f358584d327fdd034 Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Fri, 24 May 2024 19:50:18 +0000 Subject: [PATCH 2/2] [CI] Auto-commit changed files from 'node scripts/lint_ts_projects --fix' --- examples/response_stream/tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/response_stream/tsconfig.json b/examples/response_stream/tsconfig.json index 0de5b8c0df5a7f..7a0b99ab1eba2a 100644 --- a/examples/response_stream/tsconfig.json +++ b/examples/response_stream/tsconfig.json @@ -22,5 +22,6 @@ "@kbn/config-schema", "@kbn/shared-ux-router", "@kbn/ml-response-stream", + "@kbn/react-kibana-context-render", ] }