File tree 1 file changed +3
-3
lines changed
site/src/components/Spinner
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -127,9 +127,9 @@ export const Spinner: FC<SpinnerProps> = ({
127
127
) ;
128
128
} ;
129
129
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
133
133
function useShowSpinner ( loading : boolean , spinnerDelayMs : number ) : boolean {
134
134
// Disallow negative timeout values and fractional values, but also round
135
135
// the delay down if it's small enough that it might as well be immediate
You can’t perform that action at this time.
0 commit comments