Skip to content

Commit fbd2d13

Browse files
committed
Refactor GitpodButton useEffect dependency to an empty array for improved performance
1 parent 422b569 commit fbd2d13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/button/button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const GitpodButton = ({ application, additionalClassNames, urlTransformer
4848
await storage.set(STORAGE_KEY_ADDRESS, DEFAULT_GITPOD_ENDPOINT);
4949
}
5050
})();
51-
}, [address]);
51+
}, []);
5252

5353
const actions = useMemo(() => {
5454
const parsedHref = !urlTransformer ? currentHref : urlTransformer(currentHref);

0 commit comments

Comments
 (0)