Skip to content

Commit

Permalink
fix(app-aco): memoize advanced search config [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel910 committed May 6, 2024
1 parent 3e2ef95 commit 532a220
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {

const { AdvancedSearch } = AcoConfig;

export const AdvancedSearchConfigs = () => {
export const AdvancedSearchConfigs = React.memo(() => {
return (
<AcoConfig>
<AdvancedSearch.FieldRenderer name={"text"} type={FieldType.TEXT} element={<Input />} />
Expand Down Expand Up @@ -44,4 +44,6 @@ export const AdvancedSearchConfigs = () => {
/>
</AcoConfig>
);
};
});

AdvancedSearchConfigs.displayName = "AdvancedSearchConfigs";

0 comments on commit 532a220

Please sign in to comment.