mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[canvas] Reduce bundle by registering Canvas Plugin API on mount (#104264)
This commit is contained in:
parent
fa8dd5603e
commit
11b7e33a0e
4 changed files with 16 additions and 13 deletions
|
@ -34,7 +34,9 @@ interface Props {
|
|||
}
|
||||
|
||||
export function RenderExpressionsExample({ expressions, inspector }: Props) {
|
||||
const [expression, updateExpression] = useState('markdown "## expressions explorer rendering"');
|
||||
const [expression, updateExpression] = useState(
|
||||
'markdownVis "## expressions explorer rendering"'
|
||||
);
|
||||
|
||||
const expressionChanged = (value: string) => {
|
||||
updateExpression(value);
|
||||
|
|
|
@ -35,7 +35,7 @@ interface Props {
|
|||
}
|
||||
|
||||
export function RunExpressionsExample({ expressions, inspector }: Props) {
|
||||
const [expression, updateExpression] = useState('markdown "## expressions explorer"');
|
||||
const [expression, updateExpression] = useState('markdownVis "## expressions explorer"');
|
||||
const [result, updateResult] = useState<unknown>({});
|
||||
|
||||
const expressionChanged = (value: string) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue