Skip to content

Commit a532426

Browse files
authored
Remove unnecessary useEffect from sharebutton (#5476)
1 parent d116dbf commit a532426

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

webview-ui/src/components/chat/ShareButton.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,6 @@ export const ShareButton = ({ item, disabled = false }: ShareButtonProps) => {
5454
}
5555
}, [cloudIsAuthenticated, sharingEnabled])
5656

57-
// Cleanup effect to reset flag on unmount
58-
useEffect(() => {
59-
return () => {
60-
initiatedAuthFromThisButtonRef.current = false
61-
}
62-
}, [])
63-
6457
// Listen for share success messages from the extension
6558
useEffect(() => {
6659
const handleMessage = (event: MessageEvent) => {

0 commit comments

Comments
 (0)