Skip to content

Commit c00e52f

Browse files
committed
Avoid unnecessary await
1 parent f2c83de commit c00e52f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

node_package/src/clientStartup.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ export async function clientStartup(context: Context): Promise<void> {
3838

3939
// force loaded components and stores are rendered and hydrated immediately
4040
renderOrHydrateForceLoadedComponents();
41-
await hydrateForceLoadedStores();
41+
// The hydration process can handle the concurrent hydration of components and stores,
42+
// so awaiting this isn't necessary.
43+
void hydrateForceLoadedStores();
4244

4345
// Other components and stores are rendered and hydrated when the page is fully loaded
4446
await onPageLoaded(reactOnRailsPageLoaded);

0 commit comments

Comments
 (0)