perf: address PR comments and remove bolt persona references

This commit is contained in:
ruinivist
2026-06-02 08:17:38 +00:00
parent fdcda7a3c2
commit 6192595f05
3 changed files with 3 additions and 7 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ function sceneFromEditor(
files: BinaryFiles,
): ScenePayload {
return {
// ⚡ Bolt: Excalidraw passes immutable arrays, avoid copying it on every onChange event
// Excalidraw passes immutable arrays, avoid copying it on every onChange event
elements: elements as unknown[],
appState: appState as unknown as Record<string, unknown>,
files: files as unknown as Record<string, unknown>,
+2 -2
View File
@@ -33,7 +33,7 @@ export function useThemeTokenSync(
return;
}
// ⚡ Bolt: Read all tokens first to avoid layout thrashing
// Read all tokens first to avoid layout thrashing
const computedStyles = window.getComputedStyle(excalidrawRoot);
const updates: Array<[string, string]> = [];
@@ -44,7 +44,7 @@ export function useThemeTokenSync(
}
}
// ⚡ Bolt: Write in a separate pass, skipping unchanged values
// Write in a separate pass, skipping unchanged values
for (const [targetToken, value] of updates) {
if (appShell.style.getPropertyValue(targetToken) !== value) {
appShell.style.setProperty(targetToken, value);