Skip to content

Commit

Permalink
shortcut done hydration
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Aug 13, 2024
1 parent 737c5c3 commit 6d295a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dom-expressions/src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,11 @@ export function assign(node, props, isSVG, skipChildren, prevProps = {}, skipRef

// Hydrate
export function hydrate(code, element, options = {}) {
if (globalThis._$HY.done) return render(code, element, [...element.childNodes], options);
sharedConfig.completed = globalThis._$HY.completed;
sharedConfig.events = globalThis._$HY.events;
sharedConfig.load = id => globalThis._$HY.r[id];
sharedConfig.has = id => id in globalThis._$HY.r;
sharedConfig.done = globalThis._$HY.done;
sharedConfig.gather = root => gatherHydratable(element, root);
sharedConfig.registry = new Map();
sharedConfig.context = {
Expand Down

0 comments on commit 6d295a4

Please sign in to comment.