Skip to content

Commit

Permalink
refactor: Clear frames from memory on component unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
pawanpaudel93 committed Aug 2, 2024
1 parent 0372ed4 commit 932fa08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/routes/popup/settings/wallets/[address]/qr.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ export default function GenerateQR({ address }: { address: string }) {
}
}, [wallet]);

useEffect(() => {
return () => setFrames([]);
}, []);

return (
<Wrapper>
<div>
Expand Down

0 comments on commit 932fa08

Please sign in to comment.