Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Fix hydration error root fragment is not defined in the stress testing #113

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion benchmark/hydrationScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import { createRootFragment } from '../src/runtime/utils';

function runHydration() {
// Create the root fragment to hydrate everything.
rootFragment = createRootFragment(document.documentElement, document.body);
const rootFragment = createRootFragment(
document.documentElement,
document.body
);
const body = toVdom(document.body);
hydrate(body, rootFragment);
}
Expand Down