mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-10 19:10:20 +02:00
fix: make canvas compos memoize appState on props they declare (#6897)
This commit is contained in:
@@ -166,7 +166,7 @@ const InteractiveCanvas = (props: InteractiveCanvasProps) => {
|
||||
|
||||
const getRelevantAppStateProps = (
|
||||
appState: AppState,
|
||||
): Omit<InteractiveCanvasAppState, "editingElement"> => ({
|
||||
): InteractiveCanvasAppState => ({
|
||||
zoom: appState.zoom,
|
||||
scrollX: appState.scrollX,
|
||||
scrollY: appState.scrollY,
|
||||
|
Reference in New Issue
Block a user