Skip to content

Commit 4bafc34

Browse files
memoize useMergeCompStyles hook
1 parent 6ebb066 commit 4bafc34

File tree

1 file changed

+6
-1
lines changed
  • client/packages/lowcoder/src/util

1 file changed

+6
-1
lines changed

client/packages/lowcoder/src/util/hooks.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,5 +190,10 @@ export function useMergeCompStyles(
190190
styleProps,
191191
themeId,
192192
});
193-
}, []);
193+
}, [
194+
themeId,
195+
JSON.stringify(styleProps),
196+
JSON.stringify(compTheme),
197+
setInitialCompStyles
198+
]);
194199
}

0 commit comments

Comments
 (0)