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
/// <param name="clientOnly">Skip rendering server-side and only output client-side initialisation code. Defaults to <c>false</c></param>
56
57
/// <param name="serverOnly">Skip rendering React specific data-attributes during server side rendering. Defaults to <c>false</c></param>
57
58
/// <param name="containerClass">HTML class(es) to set on the container tag</param>
59
+
/// <param name="exceptionHandler">A custom exception handler that will be called if a component throws during a render. Args: (Exception ex, string componentName, string containerId)</param>
58
60
/// <returns>The component's HTML</returns>
59
61
publicstaticIHtmlStringReact<T>(
60
62
thisIHtmlHelperhtmlHelper,
@@ -64,7 +66,8 @@ public static IHtmlString React<T>(
@@ -100,6 +103,7 @@ public static IHtmlString React<T>(
100
103
/// <param name="containerId">ID to use for the container HTML tag. Defaults to an auto-generated ID</param>
101
104
/// <param name="clientOnly">Skip rendering server-side and only output client-side initialisation code. Defaults to <c>false</c></param>
102
105
/// <param name="containerClass">HTML class(es) to set on the container tag</param>
106
+
/// <param name="exceptionHandler">A custom exception handler that will be called if a component throws during a render. Args: (Exception ex, string componentName, string containerId)</param>
103
107
/// <returns>The component's HTML</returns>
104
108
publicstaticIHtmlStringReactWithInit<T>(
105
109
thisIHtmlHelperhtmlHelper,
@@ -108,7 +112,8 @@ public static IHtmlString ReactWithInit<T>(
Copy file name to clipboardExpand all lines: src/React.Core/IReactComponent.cs
+5-2
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
/*
1
+
/*
2
2
* Copyright (c) 2014-Present, Facebook, Inc.
3
3
* All rights reserved.
4
4
*
@@ -7,6 +7,8 @@
7
7
* of patent rights can be found in the PATENTS file in the same directory.
8
8
*/
9
9
10
+
usingSystem;
11
+
10
12
namespaceReact
11
13
{
12
14
/// <summary>
@@ -45,8 +47,9 @@ public interface IReactComponent
45
47
/// </summary>
46
48
/// <param name="renderContainerOnly">Only renders component container. Used for client-side only rendering.</param>
47
49
/// <param name="renderServerOnly">Only renders the common HTML mark up and not any React specific data attributes. Used for server-side only rendering.</param>
50
+
/// <param name="exceptionHandler">A custom exception handler that will be called if a component throws during a render. Args: (Exception ex, string componentName, string containerId)</param>
Copy file name to clipboardExpand all lines: src/React.Core/ReactComponent.cs
+24-23
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
/*
1
+
/*
2
2
* Copyright (c) 2014-Present, Facebook, Inc.
3
3
* All rights reserved.
4
4
*
@@ -107,8 +107,9 @@ public ReactComponent(IReactEnvironment environment, IReactSiteConfiguration con
107
107
/// </summary>
108
108
/// <param name="renderContainerOnly">Only renders component container. Used for client-side only rendering.</param>
109
109
/// <param name="renderServerOnly">Only renders the common HTML mark up and not any React specific data attributes. Used for server-side only rendering.</param>
110
+
/// <param name="exceptionHandler">A custom exception handler that will be called if a component throws during a render. Args: (Exception ex, string componentName, string containerId)</param>
0 commit comments