perf(view): reduce shell rerenders
This commit is contained in:
@@ -12,7 +12,7 @@ export async function runGenerate(options: {
|
||||
settings: GenerateSettings;
|
||||
dispatch: AppStore["dispatch"];
|
||||
}) {
|
||||
const { document, selection, viewport, settings, dispatch } = options;
|
||||
const { document, selection, settings, dispatch } = options;
|
||||
const artboard = selection.artboardId ? document.artboards.find((candidate) => candidate.id === selection.artboardId) : document.artboards[0];
|
||||
if (!artboard) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user