Skip to content

Commit

Permalink
memoize useMergeCompStyles hook
Browse files Browse the repository at this point in the history
  • Loading branch information
raheeliftikhar5 committed Sep 12, 2024
1 parent 6ebb066 commit 4bafc34
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/packages/lowcoder/src/util/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,5 +190,10 @@ export function useMergeCompStyles(
styleProps,
themeId,
});
}, []);
}, [
themeId,
JSON.stringify(styleProps),
JSON.stringify(compTheme),
setInitialCompStyles
]);
}

0 comments on commit 4bafc34

Please sign in to comment.