Skip to content

Commit 3567280

Browse files
committed
docs: remove typo
1 parent 3e0db15 commit 3567280

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
@@ -152,9 +152,9 @@ function useShowSpinner(loading: boolean, spinnerDelayMs: number): boolean {
152152
// Be very careful with this logic; React only bails out of redundant state
153153
// updates if they happen outside of a render. Inside a render, if you keep
154154
// calling a state dispatch, you will get an infinite render loop, no matter
155-
// what the value you dispatch. There must be a "base case" in the render
156-
// path that causes state dispatches to stop entirely so that React can
157-
// move on to the next component in the Fiber subtree
155+
// what value you dispatch. There must be a "base case" in the render path
156+
// that causes state dispatches to stop entirely so that React can move on
157+
// to the next component in the Fiber subtree
158158
const [delayLapsed, setDelayLapsed] = useState(safeDelay === 0);
159159
const [renderCache, setRenderCache] = useState({ loading, safeDelay });
160160
const canResetLapseOnRerender =

0 commit comments

Comments
 (0)