Skip to content

Commit

Permalink
remove double fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
ArminaAiren committed Feb 19, 2024
1 parent 16274b9 commit cb9d6cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/address/contract/ContractSecurityAudits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const ContractSecurityAudits = ({ addressHash }: Props) => {
const { data, isPlaceholderData } = useApiQuery('contract_security_audits', {
pathParams: { hash: addressHash },
queryOptions: {
refetchOnMount: false,
placeholderData: { items: [] },
enabled: Boolean(addressHash),
},
Expand Down Expand Up @@ -79,4 +80,4 @@ const ContractSecurityAudits = ({ addressHash }: Props) => {
);
};

export default ContractSecurityAudits;
export default React.memo(ContractSecurityAudits);

0 comments on commit cb9d6cb

Please sign in to comment.