mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-05 11:38:36 +09:00
Here bumped package with minor change to support layouts we don't use. Added comment with reference to the PR and repro.
24 lines
484 B
TypeScript
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 />
|
|
</>
|
|
);
|
|
};
|