Skip to content

Commit 5c2b9b0

Browse files
authored
Fix Lint formatting issue
1 parent fb6c0d2 commit 5c2b9b0

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/content/reference/react/useTransition.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,9 @@ function SubmitButton({ submitAction }) {
103103

104104
#### Caveats {/*starttransition-caveats*/}
105105

106-
* `useTransition` is a Hook, so it can only be called inside components or custom Hooks. If you need to start a Transition somewhere else (for example, from a data library), call the standalone [`startTransition`](/reference/react/startTransition) instead.
106+
* `useTransition` is a Hook, so it can only be called inside components or custom Hooks. If you need to start a Transition somewhere else (for example, from a data library), call the standalone [`startTransition`](/reference/react/startTransition) instead.
107107

108-
* A state update is marked as a Transition only if its setter runs inside `startTransition`, directly or through a callback. If you only have the updated value from a prop or custom Hook, use
109-
[`useDeferredValue`](/reference/react/useDeferredValue) instead.
108+
* A state update is marked as a Transition only if its setter runs inside `startTransition`, directly or through a callback. If you only have the updated value from a prop or custom Hook, use [`useDeferredValue`](/reference/react/useDeferredValue) instead.
110109

111110
* The function you pass to `startTransition` is called immediately, marking all state updates that happen while it executes as Transitions. If you try to perform state updates in a `setTimeout`, for example, they won't be marked as Transitions.
112111

0 commit comments

Comments
 (0)