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