DynamicLinks only produce an empty <links> tag
larissa-n opened this issue · 1 comments
larissa-n commented
Defined a dynamicLinks
function in the root file returning an array of link objects, export let handle = { dynamicLinks }
and <DynamicLinks />
added to the Document
component.
The only observable addition to <head>
is a single empty <link>
tag.
Using remix-utils 2.5.0, remix 1.1.3, miniflare 2.3.0.
Helmet works fine with this setup.
larissa-n commented
The problem was with the dynamicLinks
function being async
. Removing async
does the trick, even with data fetched from a remote server.
let dynamicLinks: DynamicLinksFunction<LoaderData> = ({ data }) => { ...