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
Would it be possible to have a function similar to collect in vue3-ssr but instead of returning a joined string of all the styles, it would be an object { [id]: styleString }?
Nuxt v3.7.0 has just updated how they manage SSR Head with unhead. Before we could return an object { headTags: collect() } in nuxtApp.ssrContext.renderMeta. Now we are using useServerHead({ style: [xxx] }).
So to integrate NaiveUI with Nuxt, we were creating a plugin like this:
Hi,
Would it be possible to have a function similar to collect in vue3-ssr but instead of returning a joined string of all the styles, it would be an object { [id]: styleString }?
Nuxt v3.7.0 has just updated how they manage SSR Head with unhead. Before we could return an object
{ headTags: collect() }
in nuxtApp.ssrContext.renderMeta. Now we are using useServerHead({ style: [xxx] }).So to integrate NaiveUI with Nuxt, we were creating a plugin like this:
But now, we have to do:
so it would be easier to have a function collectAsObject in setup that would return the map of ids and corresponding CSS styles.
The text was updated successfully, but these errors were encountered: