fix: make canvas compos memoize appState on props they declare (#6897)
This commit is contained in:
@@ -6,8 +6,8 @@ import {
|
||||
StaticCanvasAppState,
|
||||
BinaryFiles,
|
||||
Point,
|
||||
CommonCanvasAppState,
|
||||
Zoom,
|
||||
AppState,
|
||||
} from "../types";
|
||||
import {
|
||||
ExcalidrawElement,
|
||||
@@ -407,7 +407,7 @@ const bootstrapCanvas = ({
|
||||
scale: number;
|
||||
normalizedWidth: number;
|
||||
normalizedHeight: number;
|
||||
theme?: CommonCanvasAppState["theme"];
|
||||
theme?: AppState["theme"];
|
||||
isExporting?: StaticCanvasRenderConfig["isExporting"];
|
||||
viewBackgroundColor?: StaticCanvasAppState["viewBackgroundColor"];
|
||||
}): CanvasRenderingContext2D => {
|
||||
|
Reference in New Issue
Block a user