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
Copy file name to clipboardExpand all lines: aspnetcore/blazor/event-handling.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,7 @@ It's often convenient to close over additional values, such as when iterating ov
125
125
126
126
## EventCallback
127
127
128
-
A common scenario with nested components is the desire to run a parent component's method when a child component event occurs—for example, when an `onclick` event occurs in the child. To expose events across components, use an `EventCallback`. A parent component can assign a callback method to a child component's `EventCallback`.
128
+
A common scenario with nested components is the desire to run a parent component's method when a child component event occurs. An `onclick` event occurring in the child component is a common use case. To expose events across components, use an `EventCallback`. A parent component can assign a callback method to a child component's `EventCallback`.
129
129
130
130
The `ChildComponent` in the sample app (*Components/ChildComponent.razor*) demonstrates how a button's `onclick` handler is set up to receive an `EventCallback` delegate from the sample's `ParentComponent`. The `EventCallback` is typed with `MouseEventArgs`, which is appropriate for an `onclick` event from a peripheral device:
Copy file name to clipboardExpand all lines: aspnetcore/blazor/handle-errors.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ Blazor Server is a stateful framework. While users interact with an app, they ma
81
81
82
82
If a user opens the app in multiple browser tabs, they have multiple independent circuits.
83
83
84
-
Blazor treats most unhandled exceptions as fatal to the circuit where they occur. If a circuit is terminated due to an unhandled exception, the user can only continue to interact with the app by reloading the page to create a new circuit. Circuits outside of the one that's terminated, which are circuits for other users or other browser tabs, aren't affected. This scenario is similar to a desktop app that crashes—the crashed app must be restarted, but other apps aren't affected.
84
+
Blazor treats most unhandled exceptions as fatal to the circuit where they occur. If a circuit is terminated due to an unhandled exception, the user can only continue to interact with the app by reloading the page to create a new circuit. Circuits outside of the one that's terminated, which are circuits for other users or other browser tabs, aren't affected. This scenario is similar to a desktop app that crashes. The crashed app must be restarted, but other apps aren't affected.
85
85
86
86
A circuit is terminated when an unhandled exception occurs for the following reasons:
Copy file name to clipboardExpand all lines: aspnetcore/blazor/layouts.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ uid: blazor/layouts
13
13
14
14
By [Rainer Stropek](https://www.timecockpit.com) and [Luke Latham](https://github.com/guardrex)
15
15
16
-
Some app elements, such as menus, copyright messages, and company logos, are usually part of app's overall layout and used by every component in the app. Copying the code of these elements into all of the components of an app isn't an efficient approach—every time one of the elements requires an update, every component must be updated. Such duplication is difficult to maintain and can lead to inconsistent content over time. *Layouts* solve this problem.
16
+
Some app elements, such as menus, copyright messages, and company logos, are usually part of app's overall layout and used by every component in the app. Copying the code of these elements into all of the components of an app isn't an efficient approach. Every time one of the elements requires an update, every component must be updated. Such duplication is difficult to maintain and can lead to inconsistent content over time. *Layouts* solve this problem.
17
17
18
18
Technically, a layout is just another component. A layout is defined in a Razor template or in C# code and can use [data binding](xref:blazor/data-binding), [dependency injection](xref:blazor/dependency-injection), and other component scenarios.
Copy file name to clipboardExpand all lines: aspnetcore/blazor/state-management.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Blazor Server is a stateful app framework. Most of the time, the app maintains a
19
19
20
20
Examples of state held for a user's circuit include:
21
21
22
-
* The rendered UI—the hierarchy of component instances and their most recent render output.
22
+
* The rendered UI: The hierarchy of component instances and their most recent render output.
23
23
* The values of any fields and properties in component instances.
24
24
* Data held in [dependency injection (DI)](xref:fundamentals/dependency-injection) service instances that are scoped to the circuit.
25
25
@@ -45,7 +45,7 @@ In some scenarios, preserving state across circuits is desirable. An app can ret
45
45
46
46
In general, maintaining state across circuits applies to scenarios where users are actively creating data, not simply reading data that already exists.
47
47
48
-
To preserve state beyond a single circuit, *don't merely store the data in the server's memory*. The app must persist the data to some other storage location. State persistence isn't automatic—you must take steps when developing the app to implement stateful data persistence.
48
+
To preserve state beyond a single circuit, *don't merely store the data in the server's memory*. The app must persist the data to some other storage location. State persistence isn't automatic. You must take steps when developing the app to implement stateful data persistence.
49
49
50
50
Data persistence is typically only required for high-value state that users have expended effort to create. In the following examples, persisting state either saves time or aids in commercial activities:
51
51
@@ -88,7 +88,7 @@ For transient data representing navigation state, model the data as a part of th
88
88
The contents of the browser's address bar are retained:
89
89
90
90
* If the user manually reloads the page.
91
-
* If the web server becomes unavailable—the user is forced to reload the page in order to connect to a different server.
91
+
* If the web server becomes unavailable, and the user is forced to reload the page in order to connect to a different server.
92
92
93
93
For information on defining URL patterns with the `@page` directive, see <xref:blazor/routing>.
0 commit comments