Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit a5fc662

Browse files
committed
chore: return usecallback
1 parent 6c2b2db commit a5fc662

1 file changed

Lines changed: 7 additions & 20 deletions

File tree

src/ui/common/hooks/services/useExpansionVisibilityService.ts

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useCallback, useMemo } from "react";
1+
import { useCallback } from "react";
22

33
import { useDelegationStorage } from "@/ui/common/hooks/storage/useDelegationStorage";
44
import { useStakingExpansionState } from "@/ui/common/state/StakingExpansionState";
@@ -122,23 +122,10 @@ export function useExpansionVisibilityService(
122122
[isBroadcastedExpansion],
123123
);
124124

125-
/**
126-
* Memoized results for performance optimization.
127-
*/
128-
const memoizedResults = useMemo(
129-
() => ({
130-
getActivityTabDelegations,
131-
getVerifiedExpansionModalDelegations,
132-
isOriginalTransactionHidden,
133-
isBroadcastedExpansion,
134-
}),
135-
[
136-
getActivityTabDelegations,
137-
getVerifiedExpansionModalDelegations,
138-
isOriginalTransactionHidden,
139-
isBroadcastedExpansion,
140-
],
141-
);
142-
143-
return memoizedResults;
125+
return {
126+
getActivityTabDelegations,
127+
getVerifiedExpansionModalDelegations,
128+
isOriginalTransactionHidden,
129+
isBroadcastedExpansion,
130+
};
144131
}

0 commit comments

Comments
 (0)