solidjs / solid-meta

Write meta tags to the document head
127 stars 16 forks source link

doing `<Title>{[].length} items</Title>` in SSR results in "0, items" while in CSR it results in "0 items" as it should #45

Closed huseeiin closed 3 months ago

huseeiin commented 5 months ago

reproduction:

export function App() {
    return (
        <MetaProvider>
            <Title>{[].length} items</Title>
        </MetaProvider>
    );
}

const html = await renderToStringAsync(() => <App />);

const head = getAssets();
indeyets commented 5 months ago

duplicate of #37