Skip to content

Commit 5de9250

Browse files
committed
Fix failing tests
1 parent bc0455a commit 5de9250

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/Components/Web.JS/dist/Release/blazor.web.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Components/Web.JS/src/Services/ComponentDescriptorDiscovery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function discoverServerComponents(root: Node): ServerComponentDescriptor[] {
4848

4949
function discoverWebAssemblyComponents(node: Node): WebAssemblyComponentDescriptor[] {
5050
const componentComments = resolveComponentComments(node, 'webassembly') as WebAssemblyComponentDescriptor[];
51-
return componentComments;
51+
return componentComments.sort((a, b): number => a.id - b.id);
5252
}
5353

5454
function discoverAutoComponents(node: Node): AutoComponentDescriptor[] {

src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostBuilder.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,13 @@ private void InitializeRegisteredRootComponents(IInternalJSImportMethods jsMetho
107107
var typeName = jsMethods.RegisteredComponents_GetTypeName(id);
108108
var serializedParameterDefinitions = jsMethods.RegisteredComponents_GetParameterDefinitions(id);
109109
var serializedParameterValues = jsMethods.RegisteredComponents_GetParameterValues(id);
110-
registeredComponents[i] = ComponentMarker.Create(ComponentMarker.WebAssemblyMarkerType, false, id.ToString(CultureInfo.InvariantCulture));
110+
registeredComponents[i] = ComponentMarker.Create(ComponentMarker.WebAssemblyMarkerType, false, null);
111111
registeredComponents[i].WriteWebAssemblyData(
112112
assembly,
113113
typeName,
114114
serializedParameterDefinitions,
115115
serializedParameterValues);
116+
registeredComponents[i].PrerenderId = id.ToString(CultureInfo.InvariantCulture);
116117
}
117118

118119
_rootComponentCache = new RootComponentTypeCache();

0 commit comments

Comments
 (0)