[canvas] Reduce bundle by registering Canvas Plugin API on mount (#104264)

This commit is contained in:
Clint Andrew Hall 2021-07-08 13:35:00 -04:00 committed by GitHub
parent fa8dd5603e
commit 11b7e33a0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 13 deletions

View file

@ -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);

View file

@ -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) => {