From cbd763bfdda6a659a09a086ac9fcb1a4e530959e Mon Sep 17 00:00:00 2001 From: Lukasz Ostrowski Date: Wed, 28 Jun 2023 16:04:59 +0200 Subject: [PATCH] Disabled Klaviyo ssr (#684) --- .changeset/heavy-dragons-promise.md | 5 +++++ apps/klaviyo/src/pages/_app.tsx | 14 ++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 .changeset/heavy-dragons-promise.md diff --git a/.changeset/heavy-dragons-promise.md b/.changeset/heavy-dragons-promise.md new file mode 100644 index 0000000..0cc48bc --- /dev/null +++ b/.changeset/heavy-dragons-promise.md @@ -0,0 +1,5 @@ +--- +"saleor-app-klaviyo": patch +--- + +Prevent Server-side rendering in Klaviyo app to avoid hydration errors diff --git a/apps/klaviyo/src/pages/_app.tsx b/apps/klaviyo/src/pages/_app.tsx index 3040f90..a50a676 100644 --- a/apps/klaviyo/src/pages/_app.tsx +++ b/apps/klaviyo/src/pages/_app.tsx @@ -14,12 +14,14 @@ export const appBridgeInstance = typeof window !== "undefined" ? new AppBridge() function SaleorApp({ Component, pageProps }: AppProps) { return ( - - - - - - + + + + + + + + ); }