Closed this issue 2 years ago · 2 comments
Reproduction code:
<script setup lang="ts"> useHead({ link: [{ rel: 'icon', key: 'favicon', href: 'SOME_STRING' }], }); </script> <template> <div> <h1>Hi</h1> </div> </template>
Expected: key should be fine as string or ref/computed/... returning one
string
Actual:
Thanks for the issue. This was legacy logic around key handling, for some reason links were excluded and I wasn't prepared to break anything to allow them.
This is fixed in v1, I'll leave this open until it's officially released
v1 looking good, going to close this off