diff --git a/packages/webcomponents/src/elements.ts b/packages/webcomponents/src/elements.ts index 887a6f861c..043321f092 100644 --- a/packages/webcomponents/src/elements.ts +++ b/packages/webcomponents/src/elements.ts @@ -330,7 +330,7 @@ if (Builder.isBrowser && !customElements.get(componentName)) { this.subscriptions.push(() => subscription.unsubscribe()) } - async loadReact(data?: any, fresh = false) { + loadReact = async (data?: any, fresh = false) => { // Hack for now to not load shopstyle on react despite them using the old component format if ( typeof location !== 'undefined' &&