Skip to content

Commit 857f91c

Browse files
Fix premature pending state in useTransition docs
1 parent 46a54e0 commit 857f91c

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎src/content/reference/react/useTransition.md‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -657,9 +657,6 @@ export default function TabButton({ action, children, isActive }) {
657657
if (isActive) {
658658
return <b>{children}</b>
659659
}
660-
if (isPending) {
661-
return <b className="pending">{children}</b>;
662-
}
663660
return (
664661
<button onClick={() => {
665662
startTransition(async () => {
@@ -735,7 +732,6 @@ export default function ContactTab() {
735732
```css
736733
button { margin-right: 10px }
737734
b { display: inline-block; margin-right: 10px; }
738-
.pending { color: #777; }
739735
.items {
740736
max-height: 300px;
741737
overflow: auto;

0 commit comments

Comments
 (0)