Skip to content

Commit a69d576

Browse files
committed
refactor: clean up code more
1 parent 7a668d2 commit a69d576

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/src/components/Spinner/Spinner.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ export const Spinner: FC<SpinnerProps> = ({
127127
);
128128
};
129129

130-
// Split off logic into custom hook so that the main component is insulated from
131-
// some of the necessary chaos from handling re-render logic. A lot of browsers
132-
// should be able to inline this function call anyway
130+
// Splitting off logic into custom hook so that we can abstract away the chaos
131+
// of handling Spinner's re-render logic. Not worried about overhead; a lot of
132+
// browsers should be able to inline this function call
133133
function useShowSpinner(loading: boolean, spinnerDelayMs: number): boolean {
134134
// Disallow negative timeout values and fractional values, but also round
135135
// the delay down if it's small enough that it might as well be immediate

0 commit comments

Comments
 (0)