diff --git a/packages/integrations/solid/client.js b/packages/integrations/solid/client.js index f85bd8a23..d31c5cecd 100644 --- a/packages/integrations/solid/client.js +++ b/packages/integrations/solid/client.js @@ -4,7 +4,7 @@ import { hydrate, createComponent } from 'solid-js/web'; export default (element) => (Component, props, childHTML) => { // Prepare global object expected by Solid's hydration logic if (!window._$HY) { - window._$HY = { events: [], completed: new WeakSet, r: {} }; + window._$HY = { events: [], completed: new WeakSet(), r: {} }; } // Perform actual hydration let children;