We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37e932f commit 026cb7dCopy full SHA for 026cb7d
1 file changed
packages/jsapi-components/src/useSetPaddedViewportCallback.ts
@@ -46,12 +46,7 @@ export function useSetPaddedViewportCallback(
46
cleanupSubscription();
47
}
48
49
- useEffect(
50
- () => () => {
51
- cleanupSubscription();
52
- },
53
- []
54
- );
+ useEffect(() => cleanupSubscription, []);
55
56
return useCallback(
57
function setPaddedViewport(firstRow: number) {
0 commit comments