solid-meta icon indicating copy to clipboard operation
solid-meta copied to clipboard

Using multiple values from routeData object in Title appears to insert extra commas

Open rpivo opened this issue 2 years ago • 2 comments

Reproduced issue here: https://stackblitz.com/edit/solidjs-templates-pblvuq?file=src%2Froutes%2Ftest%2F%5Bid%5D.tsx

Start with npm run dev, then navigate to route /test/1.

The title should read abel bernice charlie, but instead it reads abel, ,bernice, ,charlie.

I am not sure that this has anything to do with using routeData at all -- this is just how I am able to reproduce the issue.

rpivo avatar Nov 15 '23 00:11 rpivo

the children are treated as a list.

workaround: concatenate the strings yourself

iacore avatar Dec 19 '23 22:12 iacore

Isn't the list be concatenated with no spacing, like any other children in JSX components

JakkuSakura avatar May 06 '24 05:05 JakkuSakura

Isn't the list be concatenated with no spacing, like any other children in JSX components

[1, 2].toString()

iacore avatar May 07 '24 19:05 iacore