Page MenuHomePhabricator

D13465.id44558.diff
No OneTemporary

D13465.id44558.diff

diff --git a/lib/actions/holder-actions.js b/lib/actions/holder-actions.js
--- a/lib/actions/holder-actions.js
+++ b/lib/actions/holder-actions.js
@@ -137,10 +137,13 @@
const identityContext = React.useContext(IdentityClientContext);
const getAuthMetadata = identityContext?.getAuthMetadata;
- const holdersToRemove = useSelector(state =>
- Object.entries(state.holderStore.storedHolders)
- .filter(([, holderInfo]) => holderInfo.status !== 'PENDING_REMOVAL')
- .map(([blobHash, { holder }]) => ({ blobHash, holder })),
+ const storedHolders = useSelector(state => state.holderStore.storedHolders);
+ const holdersToRemove = React.useMemo(
+ () =>
+ Object.entries(storedHolders)
+ .filter(([, holderInfo]) => holderInfo.status !== 'PENDING_REMOVAL')
+ .map(([blobHash, { holder }]) => ({ blobHash, holder })),
+ [storedHolders],
);
return React.useCallback(async () => {

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 6:03 AM (20 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2573552
Default Alt Text
D13465.id44558.diff (930 B)

Event Timeline