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
thrownewInvalidOperationException($"Cannot pass RenderFragment<T> parameter '{name}' to component '{_componentType.Name}' with rendermode '{_renderMode.GetType().Name}'. Templated content can't be passed across a rendermode boundary, because it is arbitrary code and cannot be serialized.");
69
+
}
70
+
else
71
+
{
72
+
// TODO: Ideally we *should* support RenderFragment (the non-generic version) by prerendering it
73
+
// However it's very nontrivial since it means we have to execute it within the current renderer
74
+
// somehow without actually emitting its result directly, wait for quiescence, and then prerender
75
+
// the output into a separate buffer so we can serialize it in a special way.
76
+
// A prototype implementation is at https://github.com/dotnet/aspnetcore/commit/ed330ff5b143974d9060828a760ad486b1d386ac
77
+
thrownewInvalidOperationException($"Cannot pass the parameter '{name}' to component '{_componentType.Name}' with rendermode '{_renderMode.GetType().Name}'. This is because the parameter is of the delegate type '{value.GetType()}', which is arbitrary code and cannot be serialized.");
0 commit comments