We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42386d1 commit 5defc84Copy full SHA for 5defc84
1 file changed
src/components/ConfirmModal.tsx
@@ -153,8 +153,11 @@ function ConfirmModal({
153
// eslint-disable-next-line rulesdir/prefer-shouldUseNarrowLayout-instead-of-isSmallScreenWidth
154
const {isSmallScreenWidth} = useResponsiveLayout();
155
const styles = useThemeStyles();
156
+
157
// Previous state needed for exiting animation to play correctly.
158
const prevVisible = usePrevious(isVisible);
159
160
+ // Perf: Prevents from rendering whole confirm modal on initial render.
161
if (!isVisible && !prevVisible) {
162
return null;
163
}
0 commit comments