Open jvenki opened 5 days ago
Is it because we are doing renderToString
on HEAD and Meta and Links do not have any context on the current route and therefore not reading the vite manifest
properly to inject the relevant modulepreload
links. Later, <Scripts />
is bringing it and somehow moving it to the top of the ROOT
element.
Thanks for creating this wonderful library to enable Selective Hydration.
After this change, I find all the "modulepreload" link tags placed within our new
<div id="root">
element. I am not sure why though Remix's Meta and Links are within the createHead method only.I am also using Layout Export feature of Remix and my Layout is as follows
Is there anything I am doing wrong here? This is just placing the various
modulepreload
tags later when it should ideally have been in the head