Files
webstudio/apps/builder/app/shared/remix/root.tsx
T
Bogdan Chadkin 1e7b2e6aae refactor: upgrade remix-island (#3126)
Here bumped package with minor change to support layouts we don't use.
Added comment with reference to the PR and repro.
2024-04-10 13:21:30 +07:00

24 lines
484 B
TypeScript

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 />
<Links />
</>
));
export const Root = ({ Outlet = RemixOutlet }) => {
return (
<>
<Head />
<Outlet />
<Scripts />
</>
);
};