Skip to content

Commit

Permalink
fix: delay cert subscription iteration (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendan authored Sep 20, 2023
1 parent 22912b3 commit 7e5187a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hooks/useSubnetSubscribeToCertificates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ export default function useSubnetSubscribeToCertificates({

useEffect(
function storeLatestCurrentIndexes() {
currentIndexesRef.current = currentIndexes
window.setTimeout(() => {
currentIndexesRef.current = currentIndexes
}, 500)
},
[currentIndexes]
)
Expand Down

0 comments on commit 7e5187a

Please sign in to comment.