You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stitches isn't easy to setup with Remix. I found out this article which helps, but provides an inferior workaround to the hydration problems this repo is solving.
Your solution also makes Stitches easier to use with Remix… provided that the <Head /> tag be rendered as the last element of the <App />
exportconstHead=createHead(()=>{return(<><Meta/><Links/><styleid="stitches"dangerouslySetInnerHTML={{__html: getCssText()}}/></>);});exportdefaultfunctionApp(){return(<><Outlet/><ScrollRestoration/><Scripts/><LiveReload/>{/* Head must be rendered after the rest of the DOM when using a CSS-in-JS lib such as Stitches */}<Head/></>);}
My advice is to update the position of <Head /> in the docs
The text was updated successfully, but these errors were encountered:
Stitches isn't easy to setup with Remix. I found out this article which helps, but provides an inferior workaround to the hydration problems this repo is solving.
Your solution also makes Stitches easier to use with Remix… provided that the
<Head />
tag be rendered as the last element of the<App />
My advice is to update the position of
<Head />
in the docsThe text was updated successfully, but these errors were encountered: