Skip to content

Commit 5486ef2

Browse files
Document the showToast() fallback behavior (#16638)
* Document the `showToast()` fallback behavior * Update toast.md --------- Co-authored-by: Per Nielsen Tikær <[email protected]>
1 parent 8486ff1 commit 5486ef2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/api-reference/feedback/toast.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ When an asynchronous operation is happening or when an error is thrown, it's usu
44

55
Additionally, Toasts can have some actions associated to the action they are about. For example, you could provide a way to cancel an asynchronous operation, undo an action, or copy the stack trace of an error.
66

7+
{% hint style="info" %}
8+
The `showToast()` will fallback to [showHUD()](./hud.md#showhud) if the Raycast window is closed.
9+
{% endhint %}
10+
711
![](../../.gitbook/assets/toast.webp)
812

913
## API Reference

0 commit comments

Comments
 (0)