Skip to content

Commit 6086e2c

Browse files
authored
Customize UI when circuit is paused (#36534)
1 parent 092abea commit 6086e2c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

aspnetcore/blazor/fundamentals/signalr.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ In the `Program` file, call <xref:Microsoft.AspNetCore.Builder.ComponentEndpoint
507507

508508
## Reflect the server-side connection state in the UI
509509

510-
If the client detects a lost connection to the server, a default UI is displayed to the user while the client attempts to reconnect:
510+
If the client detects a lost connection (circuit) to the server, a default UI is displayed to the user while the client attempts to reconnect:
511511

512512
:::moniker range=">= aspnetcore-9.0"
513513

@@ -541,12 +541,13 @@ If reconnection succeeds, user state is often lost. Custom code can be added to
541541

542542
To create UI elements that track reconnection state, the following table describes:
543543

544-
* A set of `components-reconnect-*` CSS classes (**Css class** column) that are set or unset by Blazor on an element with an `id` of `components-reconnect-modal`.
544+
* A set of `components-reconnect-*` CSS classes (**CSS class** column) that are set or unset by Blazor on an element with an `id` of `components-reconnect-modal`.
545545
* A `components-reconnect-state-changed` event (**Event** column) that indicates a reconnection status change.
546546

547547
| CSS class | Event | Indicates&hellip; |
548548
| --- | --- | --- |
549549
| `components-reconnect-show` | `show` | A lost connection. The client is attempting to reconnect. The reconnection modal is shown. |
550+
| `components-reconnect-paused` | `paused` | The connection is paused. For more information, see [Pause and resume circuits](xref:blazor/state-management/server#pause-and-resume-circuits). |
550551
| `components-reconnect-hide` | `hide` | An active connection is re-established to the server. The reconnection model is closed. |
551552
| `components-reconnect-retrying` | `retrying` | The client is attempting to reconnect. |
552553
| `components-reconnect-failed` | `failed` | Reconnection failed, probably due to a network failure. |

0 commit comments

Comments
 (0)