Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

refactor: upgrade remix-island (#3126)

Bogdan Chadkin1e7b2e6aae12
diff --git a/apps/builder/app/shared/remix/root.tsx b/apps/builder/app/shared/remix/root.tsx
index 082d2b0c46..8d04b005d3 100644
--- a/apps/builder/app/shared/remix/root.tsx
+++ b/apps/builder/app/shared/remix/root.tsx
@@ -1,6 +1,10 @@
import { Links, Meta, Outlet as RemixOutlet, Scripts } from "@remix-run/react";
import { createHead } from "remix-island";
+/**
+ * use remix-island to fix hydration errors when extensions
+ * change layout, see https://github.com/webstudio-is/webstudio/pull/1621
+ */
export const Head = createHead(() => (
<>
<Meta />
diff --git a/apps/builder/package.json b/apps/builder/package.json
index 088cb58fa9..c3b07ec71a 100644
--- a/apps/builder/package.json
+++ b/apps/builder/package.json
@@ -109,7 +109,7 @@
"remix-auth-form": "^1.4.0",
"remix-auth-github": "^1.7.0",
"remix-auth-google": "^2.0.0",
- "remix-island": "^0.1.2",
+ "remix-island": "^0.2.0",
"shallow-equal": "^3.1.0",
"slugify": "^1.6.6",
"strip-indent": "^4.0.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 7f9ff33a2d..3cb8c5929f 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -327,8 +327,8 @@ importers:
specifier: ^2.0.0
version: 2.0.0([email protected])
remix-island:
- specifier: ^0.1.2
+ specifier: ^0.2.0
shallow-equal:
specifier: ^3.1.0
version: 3.1.0
@@ -14897,8 +14897,8 @@ packages:
uuid: 8.3.2
dev: false
- resolution: {integrity: sha512-1vXF56y7ZKb8caUduCKdkbxObAxZnTO+arQ94QlwKK6a7wVozGCfiOOk3lr919rm7cy54eeqOVI0hud3cfHlLg==}
+ resolution: {integrity: sha512-NujWtmulgupxNOMiWKAj8lg56eYsy09aV/2pML8rov8N8LmY1UnSml4XYad+KHLy/pgZ1D9UxAmjI6GBJydTUg==}
peerDependencies:
'@remix-run/react': '>= 1'
'@remix-run/server-runtime': '>= 1'