Closed calendee closed 3 years ago
In SEO.astro, this pattern is used:
SEO.astro
{ title && <title>{title}</title> }
In some circumstances (admittedly uncommon), this can cause issues with rendering. I've personally run into this myself.
Id' suggest this pattern instead:
{ title ? <title>{title}</title> : null }
I'd be happy to make a PR for this if you'd like.
Reference: https://kentcdodds.com/blog/use-ternaries-rather-than-and-and-in-jsx
Thank you for bringing this to my attention! No need to PR, I will fix this immediately and release a new version.
This is done in v0.3.7
In
SEO.astro
, this pattern is used:In some circumstances (admittedly uncommon), this can cause issues with rendering. I've personally run into this myself.
Id' suggest this pattern instead:
I'd be happy to make a PR for this if you'd like.
Reference: https://kentcdodds.com/blog/use-ternaries-rather-than-and-and-in-jsx