You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -729,10 +735,19 @@ export default function ContactTab() {
729
735
```css
730
736
button { margin-right: 10px }
731
737
b { display: inline-block; margin-right: 10px; }
738
+
.pending { color: #777; }
732
739
```
733
740
734
741
</Sandpack>
735
742
743
+
<Note>
744
+
745
+
When exposing an `action` prop from a component, you should `await` it inside the transition.
746
+
747
+
This allows the `action` callback to be either synchronous or asynchronous without requiring an additional `startTransition` to wrap the `await` in the action.
748
+
749
+
</Note>
750
+
736
751
---
737
752
738
753
### Displaying a pending visual state {/*displaying-a-pending-visual-state*/}
0 commit comments